]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ntp/templates/ntp.conf
Try to enable ntp keying
[dsa-puppet.git] / modules / ntp / templates / ntp.conf
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
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 crypto randfile /dev/urandom
15 keysdir /etc/ntp.keys.d
16
17 <% if nodeinfo['timeserver'] -%>
18 server 0.debian.pool.ntp.org iburst dynamic
19 server 1.debian.pool.ntp.org iburst dynamic
20 server 2.debian.pool.ntp.org iburst dynamic
21 server 3.debian.pool.ntp.org iburst dynamic
22 <% elsif fqdn == "ancina.debian.org" -%>
23 server ntp.ugent.be iburst dynamic
24 <% elsif nodeinfo['misc']['natted'] -%>
25 # autokey doesn't work behind nat
26 server merikanto.debian.org iburst
27 server orff.debian.org      iburst
28 server ravel.debian.org     iburst
29 server busoni.debian.org    iburst
30 <% else -%>
31 server merikanto.debian.org iburst autokey
32 server orff.debian.org      iburst autokey
33 server ravel.debian.org     iburst autokey
34 server busoni.debian.org    iburst autokey
35 restrict merikanto.debian.org notrust nomodify notrap ntpport
36 restrict orff.debian.org      notrust nomodify notrap ntpport
37 restrict ravel.debian.org     notrust nomodify notrap ntpport
38 restrict busoni.debian.org    notrust nomodify notrap ntpport
39 <% end -%>
40
41 restrict -4 default kod notrap nomodify nopeer noquery
42 restrict -6 default kod notrap nomodify nopeer noquery
43
44 restrict 127.0.0.1
45 restrict ::1
46
47 # vim:set et:
48 # vim:set sts=4 ts=4:
49 # vim:set shiftwidth=4: