Merge pull request #1187 from justincormack/pool

Use ntp pool not single server for AWS
This commit is contained in:
Justin Cormack 2017-02-14 17:50:06 +00:00 committed by GitHub
commit d17e5f69a2
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
server pool.ntp.org iburst minpoll 2
pool pool.ntp.org iburst minpoll 2
makestep 0.5 -1
keyfile /etc/chrony/chrony.keys
driftfile /var/lib/chrony/chrony.drift

View File

@ -51,13 +51,13 @@ start() {
exit 0
;;
"mac")
sed -i '/server pool.ntp.org/d' /etc/chrony/chrony.conf
sed -i '/pool pool.ntp.org/d' /etc/chrony/chrony.conf
;;
"aws")
sed -i -e "s/^server [^ ]\+/server 0.amazon.pool.ntp.org/g" /etc/chrony/chrony.conf
sed -i -e "s/^pool [^ ]\+/pool 0.amazon.pool.ntp.org/g" /etc/chrony/chrony.conf
;;
"gcp")
sed -i -e "s/^server [^ ]\+/server metadata.google.internal/g" /etc/chrony/chrony.conf
sed -i -e "s/^pool [^ ]\+/server metadata.google.internal/g" /etc/chrony/chrony.conf
;;
"azure")
# TODO needs an ntp solution