]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ntp/templates/ntp.conf
ancina: decommision rt#5316
[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 cryptostats
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 filegen cryptostats file cryptostats type day enable
14
15 crypto randfile /dev/urandom
16 keysdir /etc/ntp.keys.d
17
18 <% if scope.lookupvar('site::nodeinfo')['timeserver'] -%>
19 server 0.debian.pool.ntp.org iburst dynamic
20 server 1.debian.pool.ntp.org iburst dynamic
21 server 2.debian.pool.ntp.org iburst dynamic
22 server 3.debian.pool.ntp.org iburst dynamic
23
24 leapfile /var/lib/ntp/leap-seconds.list
25 <% elsif scope.lookupvar('site::nodeinfo')['misc']['natted'] -%>
26 # autokey doesn't work behind nat
27
28 # czerny's, bm-bl2's, and dijkstra's ipv4 IP, hard coded for the benefit of
29 # hosts that do not have RTC's (since they won't be able to do DNS until
30 # they have a reasonable clock).
31 server 82.195.75.109        iburst
32 server 5.153.231.242        iburst
33 server 206.12.19.218        iburst
34
35 server czerny.debian.org    iburst
36 server clementi.debian.org  iburst
37 server bm-bl1.debian.org    iburst
38 server bm-bl2.debian.org    iburst
39 server dijkstra.debian.org  iburst
40 server luchesi.debian.org   iburst
41 <% else -%>
42 server czerny.debian.org       iburst autokey
43 server clementi.debian.org     iburst autokey
44 server bm-bl1.debian.org       iburst autokey
45 server bm-bl2.debian.org       iburst autokey
46 server dijkstra.debian.org     iburst autokey
47 server luchesi.debian.org      iburst autokey
48 restrict czerny.debian.org     notrust nomodify notrap ntpport
49 restrict clementi.debian.org   notrust nomodify notrap ntpport
50 restrict bm-bl1.debian.org     notrust nomodify notrap ntpport
51 restrict bm-bl2.debian.org     notrust nomodify notrap ntpport
52 restrict dijkstra.debian.org   notrust nomodify notrap ntpport
53 restrict luchesi.debian.org    notrust nomodify notrap ntpport
54 <% end -%>
55
56 restrict -4 default kod notrap nomodify nopeer noquery
57 restrict -6 default kod notrap nomodify nopeer noquery
58
59 restrict 127.0.0.1
60 restrict ::1
61
62 # vim:set et:
63 # vim:set sts=4 ts=4:
64 # vim:set shiftwidth=4: