X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=a88b72801741dd7e9ca4536291f7edf700094ca8;hb=a46db17da4f728f8fcb176d8469bde50c2e522fe;hp=47b8c7e8557da456935a81f5abd3cbf16cf7c045;hpb=ba4dff5433a1aa3d1ddb8fb37484f39b1617b6b7;p=mirror%2Fdsa-puppet.git diff --git a/manifests/site.pp b/manifests/site.pp index 47b8c7e85..a88b72801 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -2,15 +2,78 @@ Package { require => File["/etc/apt/apt.conf.d/local-recommends"] } +File { + owner => root, + group => root, + mode => 444, + ensure => file, +} + +Exec { + path => "/usr/bin:/usr/sbin:/bin:/sbin" +} + node default { include munin-node - include samhain + include sudo include debian-org - include exim + include monit + include apt-keys - case $raidcontroller { + $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml") + + include motd + include samhain + + case $smartarraycontroller { "true": { include debian-proliant } default: {} } -} + case $mta { + "exim4": { + case extractnodeinfo($nodeinfo, 'heavy_exim') { + "true": { include exim::mx } + default: { include exim } + } + } + default: {} + } + + + case $hostname { + spohr: { + include nagios::server + } + default: { + include nagios::client + } + } + + case extractnodeinfo($nodeinfo, 'apache2_defaultconfig') { + "true": { include apache2 } + default: { } + } + + case extractnodeinfo($nodeinfo, 'buildd') { + "true": { include buildd } + default: { } + } + +# maybe wait for rietz to be upgraded to lenny +# case $hostname { +# rietz,raff,klecker: +# { include named-secondary } +# default: {} +# } + + case $hostname { + geo1,geo2,geo3: + { include geodns } + default: {} + } + case $brokenhosts { + "true": { include hosts } + default: {} + } +}