$nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
$hoster = whohosts($nodeinfo, "/etc/puppet/modules/debian-org/misc/hoster.yaml")
$keyinfo = allnodeinfo("sshRSAHostKey", "ipHostNumber")
+ $mxinfo = allnodeinfo("mXRecord")
notice("hoster for ${fqdn} is ${hoster}")
- $mxinfo = allnodeinfo("mXRecord")
-
include munin-node
+ include syslog-ng
include sudo
include ssh
include debian-org
include monit
include apt-keys
include ntp
+ include ssl
include motd
"true": { include debian-proliant }
}
case $kvmdomain {
- "true": { package { acpid: ensure => installed } }
+ "true": {
+ package { acpid: ensure => installed }
+ case extractnodeinfo($nodeinfo, 'squeeze') {
+ true: { package { acpi-support-base: ensure => installed } }
+ }
+ }
}
case $mptraid {
"true": { include "raidmpt" }
case $mta {
"exim4": {
case extractnodeinfo($nodeinfo, 'heavy_exim') {
- true: { include exim::mx }
+ true: { include exim::mx }
default: { include exim }
}
}
}
+ case extractnodeinfo($nodeinfo, 'puppetmaster') {
+ true: { include puppetmaster }
+ }
+
case extractnodeinfo($nodeinfo, 'muninmaster') {
true: { include munin-node::master }
}
"true": {
case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
true: { include apache2::security_mirror }
- default: { include apache2 }
}
+ case extractnodeinfo($nodeinfo, 'apache2_www_mirror') {
+ true: { include apache2::www_mirror }
+ }
+ include apache2
}
}
+ case $rsyncd {
+ "true": { include rsyncd-log }
+ }
+
+
case extractnodeinfo($nodeinfo, 'buildd') {
- 'true': {
+ true: {
include buildd
- case $kernel {
- Linux: {
- include ferm
- }
- }
}
}
case $hostname {
- klecker,ravel,senfl,orff: { include named::secondary }
- geo1,geo2,geo3: { include named::geodns }
- bartok,schein,steffani: { include named::recursor }
+ klecker,ravel,senfl,orff,draghi: { include named::authoritative }
+ geo1,geo2,geo3: { include named::geodns }
+ franck,liszt,master,samosa,schein,spohr,steffani,widor: { include named::recursor }
}
- case $hostname {
- logtest01,geo1,geo2,geo3,bartok,senfl,beethoven,piatti,saens,villa,lobos,raff,gluck,schein,wieck,steffani,ball,handel: { include ferm }
+ case $kernel {
+ Linux: {
+ include ferm
+ include ferm::per-host
+ case $rsyncd {
+ "true": { include ferm::rsync }
+ }
+ }
}
+
case $hostname {
- piatti: {
- @ferm::rule { "dsa-udd-stunnel":
- description => "port 8080 for udd stunnel",
- rule => "&SERVICE_RANGE(tcp, http-alt, ( 192.25.206.16 70.103.162.29 217.196.43.134 ))"
- }
- }
- senfl: {
- @ferm::rule { "dsa-rsync":
- domain => "(ip ip6)",
- description => "Allow rsync access",
- rule => "&SERVICE(tcp, 873)"
- }
+ beethoven,ravel,spohr,stabile: {
+ include nfs-server
}
- saens,villa,lobos,raff,gluck,schein,wieck,steffani: {
- @ferm::rule { "dsa-ftp":
- domain => "(ip ip6)",
- description => "Allow ftp access",
- rule => "&SERVICE(tcp, 21)"
- }
- @ferm::rule { "dsa-rsync":
- domain => "(ip ip6)",
- description => "Allow rsync access",
- rule => "&SERVICE(tcp, 873)"
- }
- }
- ancina,zelenka: {
- @ferm::rule { "dsa-time":
- description => "Allow time access",
- rule => "&SERVICE_RANGE(tcp, time, \$HOST_NAGIOS_V4)"
- }
- }
- handel: {
- @ferm::rule { "dsa-puppet":
- description => "Allow puppet access",
- rule => "&SERVICE_RANGE(tcp, 8140, \$HOST_DEBIAN_V4)"
- }
- @ferm::rule { "dsa-puppet-v6":
- domain => 'ip6',
- description => "Allow puppet access",
- rule => "&SERVICE_RANGE(tcp, 8140, \$HOST_DEBIAN_V6)"
- }
- }
-
}
+
case $brokenhosts {
"true": { include hosts }
}
case $portforwarder_user_exists {
"true": { include portforwarder }
}
+
include samhain
+
+ case $hostname {
+ byrd,schuetz,tchaikovsky: {
+ include krb
+ }
+ draghi,quantz,samosa: {
+ include krb
+ include afs
+ }
+ lamb,locke,rautavaara,rietz: {
+ include krb
+ include afs::server
+ }
+ }
}
+
+# vim:set et:
+# vim:set sts=4 ts=4:
+# vim:set shiftwidth=4: