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:
Jeremi Piotrowski 2024-03-25 16:59:53 +00:00
parent d99606f1e9
commit e35e22ea27
2 changed files with 8 additions and 0 deletions

View File

@ -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