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