2023-09-01 15:42:19 -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
|
2023-09-01 15:42:19 -04:00
|
|
|
|
2023-09-01 15:42:25 -04:00
|
|
|
# Enable orphan mode if cluster cannot connect to the Internet
|
|
|
|
tos orphan 6
|
|
|
|
server 127.0.0.1
|
|
|
|
fudge 127.0.0.1 stratum 10
|
|
|
|
|
2023-09-01 15:42:19 -04:00
|
|
|
# NRC public NTP masters
|
|
|
|
server time.nrc.ca iburst
|
|
|
|
server time.chu.nrc.ca iburst
|
|
|
|
|
|
|
|
# Local PVC cluster
|
2023-09-01 15:42:23 -04:00
|
|
|
{% for host in groups[cluster_group] %}
|
2023-09-01 15:42:25 -04:00
|
|
|
peer {{ host }}
|
2023-09-01 15:42:19 -04:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
# Provide NTP for others via multicast
|
|
|
|
multicast 224.0.0.3
|
|
|
|
multicast ff05::103
|
2023-09-01 15:42:19 -04:00
|
|
|
|
|
|
|
restrict -4 default notrap nomodify
|
|
|
|
restrict -6 default notrap nomodify
|
|
|
|
restrict 127.0.0.1
|
|
|
|
restrict ::1
|