xoxys.chrony/templates/etc/chrony.conf.j2

57 lines
1.5 KiB
Plaintext
Raw Normal View History

2022-04-10 17:26:44 +02:00
# {{ ansible_managed }}
port {{ chrony_port }}
acquisitionport {{ chrony_acquisitionport }}
pool {{ chrony_pool }}
server {{ chrony_server }}
keyfile {{ chrony_key_file }}
commandkey 1
driftfile {{ chrony_drift_file }}
log {{ chrony_log }}
logdir {{ chrony_log_dir }}
maxupdateskew {{ chrony_maxupdateskew }}
dumponexit
# Specify directory for dumping measurements.
dumpdir {{ chrony_dump_dir }}
{% if chrony_initstepslew_enabled | bool %}
initstepslew {{ chrony_initstepslew_threshold }} {{ chrony_initstepslew_servers }}
{% endif %}
# This directive lets 'chronyd' to serve time even if unsynchronised to any
# NTP server.
#local stratum 10
{% if chrony_allow | length > 0 %}
# This directive designates subnets (or nodes) from which NTP clients are allowed
# to access to 'chronyd'.
{% for block in chrony_allow %}
allow {{ block }}
{% endfor %}
{% endif %}
# This directive forces `chronyd' to send a message to syslog if it
# makes a system clock adjustment larger than a threshold value in seconds.
logchange 0.5
# This directive defines an email address to which mail should be sent
# if chronyd applies a correction exceeding a particular threshold to the
# system clock.
# mailonchange root@localhost 0.5
# This directive tells 'chronyd' to parse the 'adjtime' file to find out if the
# real-time clock keeps local time or UTC. It overrides the 'rtconutc' directive.
hwclockfile /etc/adjtime
# This directive enables kernel synchronisation (every 11 minutes) of the
# real-time clock. Note that it can't be used along with the 'rtcfile' directive.
rtcsync