]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/ntp/templates/ntp.conf
Add ntp.grnet.gr to orff
[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 server merikanto.debian.org iburst
30 server orff.debian.org      iburst
31 server ravel.debian.org     iburst
32 server busoni.debian.org    iburst
33 <% else -%>
34 server merikanto.debian.org iburst autokey
35 server orff.debian.org      iburst autokey
36 server ravel.debian.org     iburst autokey
37 server busoni.debian.org    iburst autokey
38 restrict merikanto.debian.org notrust nomodify notrap ntpport
39 restrict orff.debian.org      notrust nomodify notrap ntpport
40 restrict ravel.debian.org     notrust nomodify notrap ntpport
41 restrict busoni.debian.org    notrust nomodify notrap ntpport
42 <% end -%>
43
44 restrict -4 default kod notrap nomodify nopeer noquery
45 restrict -6 default kod notrap nomodify nopeer noquery
46
47 restrict 127.0.0.1
48 restrict ::1
49
50 # vim:set et:
51 # vim:set sts=4 ts=4:
52 # vim:set shiftwidth=4: