Browse Source

Chrony: make ntp server options configurable

Users may wish to remove the 'offline' option for increased
reliability, since ifup/ifdown scripts are typically not
required in (static) server environments. Futhermore it
enables users to adjust the polling timers to their needs.

Change-Id: Iafa31c03e98785a574f38bb2206b9bea9550743e
changes/18/629318/2
Jakob Englisch 1 year ago
parent
commit
cca2800ea4
3 changed files with 7 additions and 1 deletions
  1. +2
    -0
      defaults/main.yml
  2. +4
    -0
      releasenotes/notes/chrony-ntp-server-options-f8f87225a5282e1a.yaml
  3. +1
    -1
      templates/chrony.conf.j2

+ 2
- 0
defaults/main.yml View File

@@ -270,6 +270,8 @@ security_ntp_servers:
- 1.pool.ntp.org
- 2.pool.ntp.org
- 3.pool.ntp.org
# NTP server options.
security_ntp_server_options: offline maxpoll 10 minpoll 8
# Chrony limits access to clients that are on certain subnets. Adjust the
# following subnets here to limit client access to chrony servers.
security_allowed_ntp_subnets:


+ 4
- 0
releasenotes/notes/chrony-ntp-server-options-f8f87225a5282e1a.yaml View File

@@ -0,0 +1,4 @@
---
features:
- It is now possible to modify the NTP server options in chrony using
``security_ntp_server_options``.

+ 1
- 1
templates/chrony.conf.j2 View File

@@ -20,7 +20,7 @@
# better to use IP numbers than host names.

{% for ntp_server in security_ntp_servers %}
server {{ ntp_server }} offline maxpoll 10 minpoll 8
server {{ ntp_server }} {{ security_ntp_server_options }}
{% endfor %}

# Look here for the admin password needed for chronyc. The initial


Loading…
Cancel
Save