]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ntp/templates/ntp.conf
Make a note to remove special wheezy config once #670662 is fixed
[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 # XXX REMOVE wheezy special handling when 670662 gets fixed
10
11 <% if %w{wheezy}.include?(scope.lookupvar('::lsbdistcodename')) -%>
12 statistics loopstats peerstats clockstats
13 filegen loopstats file loopstats type day enable
14 filegen peerstats file peerstats type day enable
15 filegen clockstats file clockstats type day enable
16 <% else -%>
17 statistics loopstats peerstats clockstats cryptostats
18 filegen loopstats file loopstats type day enable
19 filegen peerstats file peerstats type day enable
20 filegen clockstats file clockstats type day enable
21 filegen cryptostats file cryptostats type day enable
22 <% end -%>
23
24 crypto randfile /dev/urandom
25 keysdir /etc/ntp.keys.d
26
27 <% if scope.lookupvar('site::nodeinfo')['timeserver'] -%>
28 server 0.debian.pool.ntp.org iburst dynamic
29 server 1.debian.pool.ntp.org iburst dynamic
30 server 2.debian.pool.ntp.org iburst dynamic
31 server 3.debian.pool.ntp.org iburst dynamic
32
33 leapfile /var/lib/ntp/leap-seconds.list
34 <%   if fqdn == "orff.debian.org" -%>
35 server ntp.grnet.gr iburst dynamic
36 server chronos.duth.gr iburst
37 <%   end -%>
38 <% elsif fqdn == "ancina.debian.org" -%>
39 server ntp.ugent.be iburst dynamic
40 <% elsif scope.lookupvar('site::nodeinfo')['misc']['natted'] or if %w{wheezy}.include?(scope.lookupvar('::lsbdistcodename')) -%>
41 # autokey doesn't work behind nat
42
43 # merikanto's and orff's ipv4 IP, hard coded for the benefit of hosts
44 # that do not have RTC's (since they won't be able to do DNS until
45 # they have a reasonable clock).
46 server 86.59.118.147        iburst
47 server 194.177.211.209      iburst
48
49 server merikanto.debian.org iburst
50 server orff.debian.org      iburst
51 server ravel.debian.org     iburst
52 server busoni.debian.org    iburst
53 <% else -%>
54 server merikanto.debian.org iburst autokey
55 server orff.debian.org      iburst autokey
56 server ravel.debian.org     iburst autokey
57 server busoni.debian.org    iburst autokey
58 restrict merikanto.debian.org notrust nomodify notrap ntpport
59 restrict orff.debian.org      notrust nomodify notrap ntpport
60 restrict ravel.debian.org     notrust nomodify notrap ntpport
61 restrict busoni.debian.org    notrust nomodify notrap ntpport
62 <% end -%>
63
64 restrict -4 default kod notrap nomodify nopeer noquery
65 restrict -6 default kod notrap nomodify nopeer noquery
66
67 restrict 127.0.0.1
68 restrict ::1
69
70 # vim:set et:
71 # vim:set sts=4 ts=4:
72 # vim:set shiftwidth=4: