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