]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ntp/templates/ntp.conf
Merge branch 'master' of git+ssh://puppet.debian.org/srv/puppet.debian.org/git/dsa...
[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 <%   if fqdn == "orff.debian.org" -%>
23 server ntp.grnet.gr iburst
24 <%   end -%>
25 <% elsif fqdn == "ancina.debian.org" -%>
26 server ntp.ugent.be iburst dynamic
27 <% elsif nodeinfo['misc']['natted'] -%>
28 # autokey doesn't work behind nat
29
30 # merikanto's and orff's ipv4 IP, hard coded for the benefit of hosts
31 # that do not have RTC's (since they won't be able to do DNS until
32 # they have a reasonable clock).
33 server 86.59.118.147        iburst
34 server 194.177.211.209      iburst
35
36 server merikanto.debian.org iburst
37 server orff.debian.org      iburst
38 server ravel.debian.org     iburst
39 server busoni.debian.org    iburst
40 <% else -%>
41 server merikanto.debian.org iburst autokey
42 server orff.debian.org      iburst autokey
43 server ravel.debian.org     iburst autokey
44 server busoni.debian.org    iburst autokey
45 restrict merikanto.debian.org notrust nomodify notrap ntpport
46 restrict orff.debian.org      notrust nomodify notrap ntpport
47 restrict ravel.debian.org     notrust nomodify notrap ntpport
48 restrict busoni.debian.org    notrust nomodify notrap ntpport
49 <% end -%>
50
51 restrict -4 default kod notrap nomodify nopeer noquery
52 restrict -6 default kod notrap nomodify nopeer noquery
53
54 restrict 127.0.0.1
55 restrict ::1
56
57 # vim:set et:
58 # vim:set sts=4 ts=4:
59 # vim:set shiftwidth=4: