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