]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/ntpd/templates/ntp.conf.j2
check-mk-agent: "nagios-plugins-basic" is "monitoring-plugins-basic" since Debian...
[AnsibleRoles.git] / roles / ntpd / templates / ntp.conf.j2
1 # /etc/ntp.conf -- configuration for ntpd
2 # ---
3 #  {{ ansible_managed }}
4 # ---
5
6 driftfile /var/lib/ntp/ntp.drift
7 statsdir /var/log/ntpstats/
8
9 statistics loopstats peerstats clockstats
10 filegen loopstats  file loopstats  type day enable
11 filegen peerstats  file peerstats  type day enable
12 filegen clockstats file clockstats type day enable
13
14 # NTP servers and time sources:
15 {% for server in ntp_servers.split() %}
16 server {{ server }}
17 {% endfor %}
18 server 127.127.1.0
19 fudge  127.127.1.0 stratum 13
20
21 # Local users may interrogate the ntp server more closely.
22 restrict 127.0.0.1 nomodify
23 restrict ::1 nomodify