blob: 3bfb4e401e28c43fcded9bce8fcf9b0754a99f9e [file] [log] [blame]
Bartek Grzybowski30b2cbf2019-03-26 16:10:10 +01001{% if chrony_mode == 'server' %}
2local stratum 1
3allow
4{% elif chrony_mode == 'client' %}
5{% for tserver in chrony.servers %}
6server {{ tserver }} iburst
7{% endfor %}
8{% if chrony.slewclock == false %}
9{# Step the time by default #}
10makestep {{ chrony.makestep }}
11{% else %}
12{# Slew the clock but step at boot time if time error larger than 30 seconds #}
13initstepslew {{ chrony.initstepslew }}{% for tserver in chrony.servers %} {{ tserver }}{% endfor %}
14
15{% endif %}
16{% if timesync.servers is not defined %}
17maxjitter {{ chrony.maxjitter }}
18{% endif %}
19{% endif %}
20driftfile {{ chrony['conf'][ansible_os_family]['driftfile'] }}
21rtcsync
22logdir /var/log/chrony