blob: de6b8402df3dcda9ea75d241244b30c115d41dca [file] [log] [blame]
# List of NTP servers to use
{% for item in idf.ntp_servers %}
{% if item['options'] is not defined %}
server {{ item['server'] }}
{% elif item['options'] is defined %}
server {{ item['server'] }}{% for opt in item['options'] %} {{ opt['option'] }}{% if opt['val'] is defined %} {{ opt['val'] }}{% endif %}{% endfor %}
{% endif %}
{% endfor %}
# Ignore stratum in source selection.
stratumweight 0
# Specify the key used as password for chronyc.
commandkey 1
# Record the rate at which the system clock gains/losses time.
driftfile {{ chrony_config_driftfile }}
# In first three updates step the system clock instead of slew
# if the adjustment is larger than 10 seconds.
makestep 10 3
# Enable kernel RTC synchronization.
rtcsync
# Listen for commands only on localhost.
bindcmdaddress 127.0.0.1
bindcmdaddress ::1
keyfile {{ chrony_config_keyfile }}
# Generate command key if missing.
generatecommandkey
logchange 0.5
logdir {{ chrony_config_logdir }}