homeserver/friedhof/mgrote_ntp_chrony_server/templates/chrony.conf.j2
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

32 lines
831 B
Django/Jinja
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{ file_header | default () }}
# servers
{% for item in ntp_chrony_servers %}
server {{ item.address }} {{ item.options |default() }}
{% endfor %}
# keys
keyfile /etc/chrony/chrony.keys
# driftfile
driftfile {{ ntp_chrony_driftfile_directory }}/chrony.drift
{% if ntp_chrony_logging is sameas true %}
# Logging
log tracking measurements statistics
logdir /var/log/chrony
{% endif %}
# 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
# chrony as ntp server
allow {{ ntp_chrony_subnet_allow }}