mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 11:00:25 +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
|
makestep 0.5 -1
|
||||||
keyfile /etc/chrony/chrony.keys
|
keyfile /etc/chrony/chrony.keys
|
||||||
driftfile /var/lib/chrony/chrony.drift
|
driftfile /var/lib/chrony/chrony.drift
|
||||||
|
@ -51,13 +51,13 @@ start() {
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
"mac")
|
"mac")
|
||||||
sed -i '/server pool.ntp.org/d' /etc/chrony/chrony.conf
|
sed -i '/pool pool.ntp.org/d' /etc/chrony/chrony.conf
|
||||||
;;
|
;;
|
||||||
"aws")
|
"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")
|
"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")
|
"azure")
|
||||||
# TODO needs an ntp solution
|
# TODO needs an ntp solution
|
||||||
|
Loading…
Reference in New Issue
Block a user