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
6 @def &SERVICE($proto, $port) = {
7 proto $proto mod state state (NEW) dport $port ACCEPT;
10 @def &SERVICE_RANGE($proto, $port, $srange) = {
11 proto $proto mod state state (NEW) dport $port @subchain "$port" { saddr ($srange) ACCEPT; }"
14 @def &TCP_UDP_SERVICE($port) = {
15 proto (tcp udp) mod state state (NEW) dport $port ACCEPT;
18 @def $HOST_MAILRELAY_V4 = (<%=
20 localinfo.keys.sort.each do |node|
21 if localinfo[node]['mailrelay']
22 keyinfo[node]['ipHostNumber'].each do |ip|
32 @def $HOST_MAILRELAY_V6 = (<%=
34 localinfo.keys.sort.each do |node|
35 if localinfo[node]['mailrelay']
36 keyinfo[node]['ipHostNumber'].each do |ip|
46 @def $HOST_MAILRELAY = ( $HOST_MAILRELAY_V4 $HOST_MAILRELAY_V6 );
48 @def $HOST_NAGIOS_V4 = (<%=
50 localinfo.keys.sort.each do |node|
51 if localinfo[node]['nagiosmaster'] or localinfo[node]['extranrpeclient']
52 keyinfo[node]['ipHostNumber'].each do |ip|
62 @def $HOST_NAGIOS_V6 = (<%=
64 localinfo.keys.sort.each do |node|
65 if localinfo[node]['nagiosmaster'] or localinfo[node]['extranrpeclient']
66 keyinfo[node]['ipHostNumber'].each do |ip|
76 @def $HOST_NAGIOS = ( $HOST_NAGIOS_V4 $HOST_NAGIOS_V6 );
78 @def $HOST_MUNIN_V4 = (<%=
80 localinfo.keys.sort.each do |node|
81 if localinfo[node]['muninmaster']
82 keyinfo[node]['ipHostNumber'].each do |ip|
92 @def $HOST_MUNIN_V6 = (<%=
94 localinfo.keys.sort.each do |node|
95 if localinfo[node]['muninmaster']
96 keyinfo[node]['ipHostNumber'].each do |ip|
106 @def $HOST_MUNIN = ( $HOST_MUNIN_V4 $HOST_MUNIN_V6 );
108 @def $HOST_DB_V6 = (<%=
110 localinfo.keys.sort.each do |node|
111 if localinfo[node]['dbmaster']
112 keyinfo[node]['ipHostNumber'].each do |ip|
122 @def $HOST_DB_V4 = (<%=
124 localinfo.keys.sort.each do |node|
125 if localinfo[node]['dbmaster']
126 keyinfo[node]['ipHostNumber'].each do |ip|
136 @def $HOST_DB = ($HOST_DB_V4 $HOST_DB_V6);
138 @def $HOST_DEBIAN_V4 = (<%=
140 keyinfo.keys.sort.each do |node|
141 next unless keyinfo[node].has_key?('ipHostNumber')
142 keyinfo[node]['ipHostNumber'].each do |ip|
151 @def $HOST_DEBIAN_V6 = (<%=
153 keyinfo.keys.sort.each do |node|
154 next unless keyinfo[node].has_key?('ipHostNumber')
155 keyinfo[node]['ipHostNumber'].each do |ip|
164 @def $HOST_DEBIAN = ($HOST_DEBIAN_V4 $HOST_DEBIAN_V6);
166 @def $sgran = (91.103.132.24/29 85.158.45.51/32);
168 @def $weasel = ($weasel 86.59.118.144/28); # debian@sil
169 @def $weasel = ($weasel 86.59.21.32/29); # anguilla1
170 @def $weasel = ($weasel 86.59.30.32/28); # anguilla2
171 @def $weasel = ($weasel 141.201.27.0/24); # came
172 @def $weasel = ($weasel 62.99.152.178); # argos.campus-sbg
174 @def $zobel = ($zobel 87.139.82.80/32); # exit.credativ.com
175 @def $zobel = ($zobel 87.193.134.192/27); # credativ qsc
176 @def $zobel = ($zobel 78.47.2.104/29); # baldur, bragi, saga
178 @def $DSA_IPS = ($sgran $weasel $zobel $luca);
180 @def $sgran6 = (2001:4b10:100b::/48);
181 @def $sgran6 = ($sgran6 2001:4b10:0000:810b::/64);
183 @def $weasel6 = ($weasel6 2001:826:408:200::/56); # came
184 @def $weasel6 = ($weasel6 2001:858:10f::/48); # anguilla
186 @def $zobel6 = ($zobel6 2001:6f8:1215::/48); # baldur
187 @def $zobel6 = ($zobel6 2001:6f8:928::/48); # WS2
188 @def $zobel6 = ($zobel6 2a01:198:549::/48); # WGS20
190 @def $DSA_V6_IPS = ($sgran6 $weasel6 $zobel6 $luca6);
192 @def $USER_kibi = ();
193 @def $USER_kibi = ($USER_kibi 90.80.97.98); # gruyere.kerlabs.com
194 @def $USER_kibi = ($USER_kibi 88.164.242.219); # home.ikibiki.org
195 @def $USER_kibi = ($USER_kibi 82.244.158.68); # @parents'
196 @def $USER_aurel32 = ();
197 @def $USER_aurel32 = ($USER_aurel32 88.191.82.174); # hall.aurel32.net
198 @def $USER_aurel32 = ($USER_aurel32 82.232.2.251); # farad.aurel32.net
199 @def $FREEBSD_SSH_ACCESS = ($DSA_IPS $USER_kibi $USER_aurel32);