Add debian common role

This commit is contained in:
2023-05-05 15:47:27 -04:00
parent b387d68eda
commit bf6bfe2809
79 changed files with 3166 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
# 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