X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=b8f396b91d4a574f0050bcbdd0a63fb6015ad0f8;hb=61e63cbd8298d10a714106e0566ecd2e21347308;hp=9e657d5bc7d10fe867dbcf84e5e941854deb66d9;hpb=495710bad4d8b8e0e369844fb9327cf06924ab4c;p=mirror%2Fdsa-puppet.git diff --git a/manifests/site.pp b/manifests/site.pp index 9e657d5bc..b8f396b91 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -14,16 +14,18 @@ Exec { } node default { + $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml") + include munin-node include sudo + include ssh include debian-org include monit - include samhain include apt-keys - - $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml") + include ntp include motd + include samhain case $smartarraycontroller { "true": { include debian-proliant } @@ -31,7 +33,12 @@ node default { } case $mta { - "exim4": { include exim } + "exim4": { + case extractnodeinfo($nodeinfo, 'heavy_exim') { + "true": { include exim::mx } + default: { include exim } + } + } default: {} } @@ -45,34 +52,38 @@ node default { } } - case $apache2 { - "true": { case $hostname { - carver,rore,draghi,tartini,samosa,duarte: { include apache2 } - default: {} - } } - default: {} - } + case extractnodeinfo($nodeinfo, 'apache2_defaultconfig') { + "true": { include apache2 } + default: { } + } - case $hostname { - ancina,arcadelt,argento,brahms,goedel,goetz,lafayette,malo,murphy,praetorius,puccini,paer: - { include buildd } - default: {} - } + case extractnodeinfo($nodeinfo, 'buildd') { + "true": { include buildd } + default: { } + } + case extractnodeinfo($nodeinfo, 'apache2_security_mirror') { + "true": { include apache2::security_mirror } + default: { } + } -# maybe wait for rietz to be upgraded to lenny -# case $hostname { -# rietz,raff,klecker: -# { include named-secondary } -# default: {} -# } +# maybe wait for rietz to be upgraded to lenny case $hostname { - geo1,geo2,geo3: - { include geodns } + rietz,raff,klecker: + { include named::secondary } default: {} } -} -node penalosa inherits default { - include hosts + case $hostname { + geo1,geo2,geo3: + { + include named::geodns + } + default: { + } + } + case $brokenhosts { + "true": { include hosts } + default: {} + } }