fuel-library/deployment/puppet/cobbler/templates/snippets/ntp_to_masternode_ubuntu.erb
Stanislaw Bogatkin 7a06344429 Stop using sntp and start using ntpdate
Change-Id: I598b3c7edacf0f61a6fc04efac06b25fad2be1f4
Related-Bug: #1417574
2015-02-05 00:20:19 +03:00

8 lines
340 B
Plaintext

sed -i '/^\s*tinker panic/ d' /target/etc/ntp.conf && \
sed -i '1 i tinker panic 0' /target/etc/ntp.conf && \
echo 0 > /target/var/lib/ntp/ntp.drift && \
sed -i '/^\s*server/ d' /target/etc/ntp.conf && \
echo "server $server burst iburst" >> /target/etc/ntp.conf && \
in-target ntpdate -t0.2 -p8 -ub $server;\
in-target hwclock --systohc;\