scripts/ansible/templates/chrony.conf.j2

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-08-25 14:17:20 -04:00
# Welcome to the chrony configuration file. See chrony.conf(5) for more
# information about usuable directives.
2020-12-23 00:08:41 -05:00
{% if hostname == 'polyvalent.seaturtle.pw' %}
server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org iburst
server 2.us.pool.ntp.org iburst
server 3.us.pool.ntp.org iburst
{% else %}
2019-08-25 14:17:20 -04:00
server ntp-1.vt.edu iburst
server ntp-2.vt.edu iburst
server ntp-3.vt.edu iburst
server ntp-4.vt.edu iburst
2020-12-23 00:08:41 -05:00
{% endif %}
2019-08-25 14:17:20 -04:00
pool 2.debian.pool.ntp.org iburst
# This directive specify the location of the file containing ID/key pairs for
# NTP authentication.
keyfile /etc/chrony/chrony.keys
# This directive specify the file into which chronyd will store the rate
# information.
driftfile /var/lib/chrony/chrony.drift
# Uncomment the following line to turn logging on.
#log tracking measurements statistics
# Log files location.
logdir /var/log/chrony
# Stop bad estimates upsetting machine clock.
maxupdateskew 100.0
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it cant be used along with the 'rtcfile' directive.
rtcsync
# Step the system clock instead of slewing it if the adjustment is larger than
# one second, but only in the first three clock updates.
makestep 1 3