Update template to use pool
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2021-06-25 22:37:02 +02:00
parent 8404560d32
commit 20f9aede36
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
2 changed files with 18 additions and 5 deletions

View file

@ -1,9 +1,13 @@
---
chrony_ntpservers:
- 0.centos.pool.ntp.org
- 1.centos.pool.ntp.org
- 2.centos.pool.ntp.org
- 3.centos.pool.ntp.org
#chrony_ntpservers:
# - 0.centos.pool.ntp.org
# - 1.centos.pool.ntp.org
# - 2.centos.pool.ntp.org
# - 3.centos.pool.ntp.org
chrony_ntppools:
- 1.pool.ntp.org
- 2.pool.ntp.org
- 3.pool.ntp.org
chrony_allowclients: false
#chrony_clients:
# - 192.168.0.0/24

View file

@ -1,8 +1,17 @@
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
{% if chrony_ntpservers is defined or chrony_ntppools is defined %}
{% if chrony_ntpservers is defined %}
{% for ntpserver in chrony_ntpservers %}
server {{ ntpserver }} iburst
{% endfor %}
{% endif %}
{% if chrony_ntppools is defined %}
{% for ntppool in chrony_ntppools %}
pool {{ ntppool }} iburst
{% endfor %}
{% endif %}
{% endif %}
{% if chrony_clients is defined %}
# Ignore stratum in source selection.