2019-06-09 00:11:06 -04:00
|
|
|
# Main NTP configuration
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
driftfile /var/lib/ntp/ntp.drift
|
|
|
|
|
|
|
|
statistics loopstats peerstats clockstats
|
|
|
|
|
|
|
|
filegen loopstats file loopstats type day enable
|
|
|
|
filegen peerstats file peerstats type day enable
|
|
|
|
filegen clockstats file clockstats type day enable
|
|
|
|
|
|
|
|
disable auth
|
2019-06-12 23:24:00 -04:00
|
|
|
|
|
|
|
# NRC public NTP masters
|
|
|
|
server time.nrc.ca iburst
|
|
|
|
server time.chu.nrc.ca iburst
|
|
|
|
|
|
|
|
# Local PVC cluster
|
2020-08-06 13:20:14 -04:00
|
|
|
{% for host in groups[cluster_group] %}
|
2019-06-12 23:24:00 -04:00
|
|
|
server {{ host }} iburst
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
# Provide NTP for others via multicast
|
|
|
|
multicast 224.0.0.3
|
|
|
|
multicast ff05::103
|
2019-06-09 00:11:06 -04:00
|
|
|
|
|
|
|
restrict -4 default notrap nomodify
|
|
|
|
restrict -6 default notrap nomodify
|
|
|
|
restrict 127.0.0.1
|
|
|
|
restrict ::1
|