This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
proxmox:1_2_3_fresh_5.x_proxmox [2018/01/10 21:22] moliver@uclv |
proxmox:1_2_3_fresh_5.x_proxmox [2020/04/10 17:38] (current) |
||
---|---|---|---|
Line 21: | Line 21: | ||
cat > /etc/apt/sources.list.d/ceph-uclv.list << 'EoT' | cat > /etc/apt/sources.list.d/ceph-uclv.list << 'EoT' | ||
- | deb http://repos.uclv.edu.cu/debian/ceph-luminous stretch main | + | deb http://repos.uclv.edu.cu/proxmox/ceph-luminous stretch main |
EoT | EoT | ||
Line 86: | Line 86: | ||
EoT | EoT | ||
+ | |||
+ | |||
+ | timedatectl set-ntp false | ||
+ | apt-get install ntpdate | ||
+ | |||
+ | cat > /etc/default/ntpdate << 'EoT' | ||
+ | # The settings in this file are used by the program ntpdate-debian, but not | ||
+ | # by the upstream program ntpdate. | ||
+ | |||
+ | # Set to "yes" to take the server list from /etc/ntp.conf, from package ntp, | ||
+ | # so you only have to keep it in one place. | ||
+ | NTPDATE_USE_NTP_CONF=yes | ||
+ | |||
+ | # List of NTP servers to use (Separate multiple servers with spaces.) | ||
+ | # Not used if NTPDATE_USE_NTP_CONF is yes. | ||
+ | NTPSERVERS="10.12.1.250" | ||
+ | #0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org" | ||
+ | |||
+ | # Additional options to pass to ntpdate | ||
+ | NTPOPTIONS="" | ||
+ | EoT | ||
+ | |||
+ | ntpdate -v 10.12.1.250 | ||
+ | |||
+ | |||
+ | cat <<EoT >/etc/rc.local | ||
+ | #!/bin/sh -e | ||
+ | # | ||
+ | # rc.local | ||
+ | # | ||
+ | # This script is executed at the end of each multiuser runlevel. | ||
+ | # Make sure that the script will "exit 0" on success or any other | ||
+ | # value on error. | ||
+ | # | ||
+ | # In order to enable or disable this script just change the execution | ||
+ | # bits. | ||
+ | # | ||
+ | # By default this script does nothing. | ||
+ | |||
+ | /usr/sbin/ntpdate 10.12.1.250 | ||
+ | |||
+ | exit 0 | ||
+ | EoT | ||
+ | |||
+ | chmod +x /etc/rc.local | ||
+ | systemctl daemon-reload | ||
+ | systemctl start rc-local | ||
+ | systemctl status rc-local | ||