mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
coreos-base/misc-files: Add AWS/GPC time sync service to default ntp.conf
The goal is to enable ntpd by default on AWS/GCP with using the cloud provided ntp endpoint. Enabling ntpd.service is the easy part. Enabling the correct ntp server is trickier. I would love to ship an OEM specific ntp.conf, but this might interfere with user modifications to either ntpd.service or ntp.conf. The safest way to implement this is to add the AWS/GCP time sync address (which are link-local address) to the default ntp.conf. This will work on AWS/GCP where ntpd will be enabled by default, and if a user on another platform enables ntpd they will simply have a non-responsive source in their server list - which is not a problem for ntpd. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
d99606f1e9
commit
e35e22ea27
@ -10,6 +10,14 @@
|
||||
# Common pool for random people
|
||||
#server pool.ntp.org
|
||||
|
||||
# AWS Time Sync Service.
|
||||
server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4
|
||||
# AWS Time Sync Service IPv6:
|
||||
server fd00:ec2::123 prefer iburst minpoll 4 maxpoll 4
|
||||
|
||||
# GCP NTP Service
|
||||
server metadata.google.internal prefer iburst
|
||||
|
||||
# Pools for Flatcar users
|
||||
server 0.flatcar.pool.ntp.org
|
||||
server 1.flatcar.pool.ntp.org
|
||||
|
Loading…
Reference in New Issue
Block a user