mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 10:31:35 +00:00
Merge pull request #1187 from justincormack/pool
Use ntp pool not single server for AWS
This commit is contained in:
commit
d17e5f69a2
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user