Skip to content

Commit

Permalink
coreos-base/misc-files: Add AWS/GPC time sync service to default ntp.…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
jepio committed Mar 26, 2024
1 parent d99606f commit e35e22e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e35e22e

Please sign in to comment.