2 require => File["/etc/apt/apt.conf.d/local-recommends"]
13 path => "/usr/bin:/usr/sbin:/bin:/sbin"
17 $localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml")
18 $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
19 $hoster = whohosts($nodeinfo, "/etc/puppet/modules/debian-org/misc/hoster.yaml")
20 $keyinfo = allnodeinfo("sshRSAHostKey", "ipHostNumber")
21 notice("hoster for ${fqdn} is ${hoster}")
23 $mxinfo = allnodeinfo("mXRecord")
37 finzi,fano,fasch,field: { include kfreebsd }
40 case $smartarraycontroller {
41 "true": { include debian-proliant }
44 "true": { package { acpid: ensure => installed } }
47 "true": { include "raidmpt" }
52 case extractnodeinfo($nodeinfo, 'heavy_exim') {
53 'true': { include exim::mx }
54 default: { include exim }
59 case extractnodeinfo($nodeinfo, 'muninmaster') {
60 true: { include munin-node::master }
63 case extractnodeinfo($nodeinfo, 'nagiosmaster') {
64 true: { include nagios::server }
65 default: { include nagios::client }
70 case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
71 true: { include apache2::security_mirror }
72 default: { include apache2 }
77 case extractnodeinfo($nodeinfo, 'buildd') {
89 klecker,ravel,senfl,orff: { include named::secondary }
90 geo1,geo2,geo3: { include named::geodns }
91 bartok,schein,steffani,franck: { include named::recursor }
95 ries,franck,powell,logtest01,geo1,geo2,geo3,bartok,senfl,beethoven,piatti,saens,villa,lobos,raff,gluck,schein,wieck,steffani,ball,handel,tchaikovsky,heininen,nielsen,kokkonen,kaufmann: { include ferm }
99 agricola,albeniz,gabrielli,merulo,paer,pergolesi,pescetti,smetana,sperger,zee,zelenka: { include ferm }
102 busoni,englund,orff,duarte,grieg,soler,krenek,lindberg,morricone,respighi,scelsi,valente,vitry,vivaldi,wolkenstein,rietz,unger: { include ferm }
107 @ferm::rule { "dsa-zivit-rrdcollect":
108 description => "port 6666 for rrdcollect for zivit",
109 rule => "&SERVICE_RANGE(tcp, 6666, ( 10.130.18.71 ))"
111 @ferm::rule { "dsa-zivit-zabbix":
112 description => "port 10050 for zabbix for zivit",
113 rule => "&SERVICE_RANGE(tcp, 10050, ( 10.130.18.76 ))"
117 @ferm::rule { "dsa-udd-stunnel":
118 description => "port 8080 for udd stunnel",
119 rule => "&SERVICE_RANGE(tcp, http-alt, ( 192.25.206.16 70.103.162.29 217.196.43.134 ))"
123 @ferm::rule { "dsa-rsync":
124 domain => "(ip ip6)",
125 description => "Allow rsync access",
126 rule => "&SERVICE(tcp, 873)"
129 saens,villa,lobos,raff,gluck,schein,wieck,steffani,ries,rietz,franck,morricone,valente: {
130 @ferm::rule { "dsa-ftp":
131 domain => "(ip ip6)",
132 description => "Allow ftp access",
133 rule => "&SERVICE(tcp, 21)"
135 @ferm::rule { "dsa-rsync":
136 domain => "(ip ip6)",
137 description => "Allow rsync access",
138 rule => "&SERVICE(tcp, 873)"
142 @ferm::rule { "dsa-time":
143 description => "Allow time access",
144 rule => "&SERVICE_RANGE(tcp, time, \$HOST_NAGIOS_V4)"
148 @ferm::rule { "dsa-puppet":
149 description => "Allow puppet access",
150 rule => "&SERVICE_RANGE(tcp, 8140, \$HOST_DEBIAN_V4)"
152 @ferm::rule { "dsa-puppet-v6":
154 description => "Allow puppet access",
155 rule => "&SERVICE_RANGE(tcp, 8140, \$HOST_DEBIAN_V6)"
159 @ferm::rule { "dsa-powell-v6-tunnel":
160 description => "Allow powell to use V6 tunnel broker",
161 rule => "proto ipv6 saddr 212.227.117.6 jump ACCEPT"
163 @ferm::rule { "dsa-powell-btseed":
164 domain => "(ip ip6)",
165 description => "Allow powell to seed BT",
166 rule => "proto tcp dport 8000:8100 jump ACCEPT"
168 @ferm::rule { "dsa-powell-rsync":
169 description => "Hoster wants to sync from here, and why not",
170 rule => "&SERVICE_RANGE(tcp, rsync, ( 195.20.242.90 192.25.206.33 82.195.75.106 206.12.19.118 ))"
174 @ferm::rule { "dsa-merikanto-beethoven":
175 description => "Allow merikanto", # for nfs, and that uses all kind of ports by default.
176 rule => "source 172.22.127.147 interface bond0 jump ACCEPT",
180 @ferm::rule { "dsa-syslog":
181 description => "Allow syslog access",
182 rule => "&SERVICE_RANGE(tcp, 5140, \$HOST_DEBIAN_V4)"
184 @ferm::rule { "dsa-syslog-v6":
186 description => "Allow syslog access",
187 rule => "&SERVICE_RANGE(tcp, 5140, \$HOST_DEBIAN_V6)"
191 @ferm::rule { "dsa-hkp":
192 domain => "(ip ip6)",
193 description => "Allow hkp access",
194 rule => "&SERVICE(tcp, 11371)"
196 @ferm::rule { "dsa-rsync":
197 domain => "(ip ip6)",
198 description => "Allow rsync access",
199 rule => "&SERVICE(tcp, 873)"
204 "true": { include hosts }
207 "ubcece", "darmstadt", "ftcollins", "grnet": { include resolv }
209 case $portforwarder_user_exists {
210 "true": { include portforwarder }