From 7473a45d98db51c68bccc643018df021294d7118 Mon Sep 17 00:00:00 2001 From: Jakob Englisch Date: Thu, 10 Jan 2019 00:12:42 +0100 Subject: [PATCH] Chrony: new NTP server defaults This patch drops the offline option because this role usually applies to always-on machines and the subsystem which detects if you're online or offline seems to be largely unstable which causes chronyd to never attempt to synchronize time. It also drops the minpoll and maxpoll options to leave it to the defaults of the chronyd service, this is due to the numbers provided not allowing the system to properly sync up time. It also adds the 'iburst' option which will send a few quick bursts when the system first goes up in order to get it to sync up with time faster. Change-Id: Iad41ef505f5a1c142ec7ffe07e4a1c08aa614235 --- defaults/main.yml | 2 +- .../notes/chrony-ntp-server-defaults-7cd2e3a80723e0bd.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/chrony-ntp-server-defaults-7cd2e3a80723e0bd.yaml diff --git a/defaults/main.yml b/defaults/main.yml index 4177a46b..3ab4fe50 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -271,7 +271,7 @@ security_ntp_servers: - 2.pool.ntp.org - 3.pool.ntp.org # NTP server options. -security_ntp_server_options: offline maxpoll 10 minpoll 8 +security_ntp_server_options: iburst # Configure Chrony to synchronize the hardware clock security_ntp_sync_rtc: false # Chrony limits access to clients that are on certain subnets. Adjust the diff --git a/releasenotes/notes/chrony-ntp-server-defaults-7cd2e3a80723e0bd.yaml b/releasenotes/notes/chrony-ntp-server-defaults-7cd2e3a80723e0bd.yaml new file mode 100644 index 00000000..6d1028b9 --- /dev/null +++ b/releasenotes/notes/chrony-ntp-server-defaults-7cd2e3a80723e0bd.yaml @@ -0,0 +1,6 @@ +--- +upgrade: + - Changed the default NTP server options in ``chrony.conf``. The ``offline`` + option has been removed, ``minpoll``/``maxpoll`` have been removed in favour of + the upstream defaults, while the ``iburst`` option was added to speed up + initial time synchronization.