blse2-public/common-debian/templates/etc/ntp.conf.j2

39 lines
853 B
Django/Jinja

# 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
{% if 'remote' in group_names %}
server time.nrc.ca
server time.chu.nrc.ca
restrict -4 default kod notrap nomodify nopeer
restrict -6 default kod notrap nomodify nopeer
{% elif 'role_ceph' in group_names %}
server 10.60.0.251 iburst
server 10.60.0.252 iburst
server ceph1 iburst
server ceph2 iburst
server ceph3 iburst
restrict -4 default notrap nomodify
restrict -6 default notrap nomodify
{% else %}
server 10.100.0.251 burst
server 10.100.0.252 burst
restrict -4 default notrap nomodify
restrict -6 default notrap nomodify
{% endif %}
restrict 127.0.0.1
restrict ::1