}
node default {
+ $localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml")
+ $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml")
+ $hoster = whohosts($nodeinfo, "/etc/puppet/modules/debian-org/misc/hoster.yaml")
+ notice("hoster for ${fqdn} is ${hoster}")
+
+ $mxinfo = allnodeinfo("mXRecord")
+
+ include ferm
include munin-node
include sudo
+ include ssh
include debian-org
include monit
+ include apt-keys
+ include ntp
+
include motd
include samhain
case $smartarraycontroller {
"true": { include debian-proliant }
- default: {}
+ }
+ case $kvmdomain {
+ "true": { package { acpid: ensure => installed } }
}
case $mta {
- "exim4": { include exim }
- default: {}
+ "exim4": {
+ case extractnodeinfo($nodeinfo, 'heavy_exim') {
+ "true": { include exim::mx }
+ default: { include exim }
+ }
+ }
}
- import "nagios"
- include nagios-client
-
case $hostname {
spohr: {
+ include munin-node::master
+ }
+ }
+ case $hostname {
+ tchaikovsky: {
include nagios::server
}
default: {
}
case $apache2 {
- "true": { case $hostname {
- carver,rore,tartini: { include apache2 }
- default: {}
- } }
- default: {}
+ "true": {
+ case extractnodeinfo($nodeinfo, 'apache2_security_mirror') {
+ "true": { include apache2::security_mirror }
+ default: { include apache2 }
+ }
+ }
}
- case $hostname {
- ancina,brahms,goedel,goetz,lafayette,malo,praetorius,puccini:
- { include buildd }
- default: {}
+ case extractnodeinfo($nodeinfo, 'buildd') {
+ "true": { include buildd }
}
+
case $hostname {
- geo1,geo2,geo3:
- { include geodns }
- default: {}
+ klecker,ravel,senfl,orff: { include named::secondary }
}
-}
-node penalosa inherits default {
- include hosts
+ case $hostname {
+ logtest01: { include ferm::real }
+ }
+ case $hostname {
+ geo1,geo2,geo3: { include named::geodns }
+ }
+ case $brokenhosts {
+ "true": { include hosts }
+ }
+ case $hoster {
+ "ubcece", "darmstadt", "ftcollins", "grnet": { include resolv }
+ }
}