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")
36 finzi,fano,fasch,field: { include kfreebsd }
39 case $smartarraycontroller {
40 "true": { include debian-proliant }
43 "true": { package { acpid: ensure => installed } }
46 "true": { include "raidmpt" }
51 case extractnodeinfo($nodeinfo, 'heavy_exim') {
52 'true': { include exim::mx }
53 default: { include exim }
58 case extractnodeinfo($nodeinfo, 'muninmaster') {
59 true: { include munin-node::master }
62 case extractnodeinfo($nodeinfo, 'nagiosmaster') {
63 true: { include nagios::server }
64 default: { include nagios::client }
69 case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
70 true: { include apache2::security_mirror }
71 default: { include apache2 }
76 case extractnodeinfo($nodeinfo, 'buildd') {
88 klecker,ravel,senfl,orff: { include named::secondary }
89 geo1,geo2,geo3: { include named::geodns }
90 bartok,schein,steffani: { include named::recursor }
94 logtest01,geo1,geo2,geo3,bartok,senfl,beethoven,piatti,saens,villa,lobos,raff,gluck,schein,wieck,steffani,ball,handel,tchaikovsky: { include ferm }
98 @ferm::rule { "dsa-zivit-rrdcollect":
99 description => "port 6666 for rrdcollect for zivit",
100 rule => "&SERVICE_RANGE(tcp, 6666, ( 10.130.18.71 ))"
102 @ferm::rule { "dsa-zivit-zabbix":
103 description => "port 10050 for zabbix for zivit",
104 rule => "&SERVICE_RANGE(tcp, 10050, ( 10.130.18.76 ))"
108 @ferm::rule { "dsa-udd-stunnel":
109 description => "port 8080 for udd stunnel",
110 rule => "&SERVICE_RANGE(tcp, http-alt, ( 192.25.206.16 70.103.162.29 217.196.43.134 ))"
114 @ferm::rule { "dsa-rsync":
115 domain => "(ip ip6)",
116 description => "Allow rsync access",
117 rule => "&SERVICE(tcp, 873)"
120 saens,villa,lobos,raff,gluck,schein,wieck,steffani: {
121 @ferm::rule { "dsa-ftp":
122 domain => "(ip ip6)",
123 description => "Allow ftp access",
124 rule => "&SERVICE(tcp, 21)"
126 @ferm::rule { "dsa-rsync":
127 domain => "(ip ip6)",
128 description => "Allow rsync access",
129 rule => "&SERVICE(tcp, 873)"
133 @ferm::rule { "dsa-time":
134 description => "Allow time access",
135 rule => "&SERVICE_RANGE(tcp, time, \$HOST_NAGIOS_V4)"
139 @ferm::rule { "dsa-puppet":
140 description => "Allow puppet access",
141 rule => "&SERVICE_RANGE(tcp, 8140, \$HOST_DEBIAN_V4)"
143 @ferm::rule { "dsa-puppet-v6":
145 description => "Allow puppet access",
146 rule => "&SERVICE_RANGE(tcp, 8140, \$HOST_DEBIAN_V6)"
150 @ferm::rule { "dsa-merikanto-beethoven":
151 description => "Allow merikanto", # for nfs, and that uses all kind of ports by default.
152 rule => "source 172.22.127.147 interface bond0 jump ACCEPT",
158 "true": { include hosts }
161 "ubcece", "darmstadt", "ftcollins", "grnet": { include resolv }
163 case $portforwarder_user_exists {
164 "true": { include portforwarder }