X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=e8f5dfcb60be9f28c1a5d5dc441db83d2a798497;hb=7ff9a06b9c3affc9eaf3d28f9b8f00f685b7dd9a;hp=99af3fce6c6ce11e270e5d37180cbf067478c30b;hpb=38c1d03fd5280e429c20bfd702effb497cff2ee1;p=mirror%2Fdsa-puppet.git diff --git a/manifests/site.pp b/manifests/site.pp index 99af3fce6..66d16224d 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -9,59 +9,88 @@ File { ensure => file, } +Exec { + path => "/usr/bin:/usr/sbin:/bin:/sbin" +} + 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") + $keyinfo = allnodeinfo("sshRSAHostKey", "ipHostNumber") + notice("hoster for ${fqdn} is ${hoster}") + + $mxinfo = allnodeinfo("mXRecord") + include munin-node - include samhain 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 extractnodeinfo($nodeinfo, 'muninmaster') { + "true": { + include munin-node::master + } + } - case $hostname { - spohr: { - import "nagios" - include nagios-server - } - default: {} + case extractnodeinfo($nodeinfo, 'nagiosmaster') { + "true": { + include nagios::server + } + default: { + include nagios::client + } } case $apache2 { - "true": { case $hostname { - "carver": { include apache2 } - default: {} - } } - default: {} + "true": { + case extractnodeinfo($nodeinfo, 'apache2_security_mirror') { + "true": { include apache2::security_mirror } + default: { include apache2 } + } + } + } + + case extractnodeinfo($nodeinfo, 'buildd') { + "true": { include buildd } } case $hostname { - brahms,goedel,goetz,lafayette,malo,praetorius,puccini: - { include buildd } - default: {} + klecker,ravel,senfl,orff: { include named::secondary } } + case $hostname { - geo1,geo2,geo3: - { include geodns } - default: {} + logtest01: { include ferm } } case $hostname { - argento: - { include monit } - default: {} + geo1,geo2,geo3: { include named::geodns } + } + case $brokenhosts { + "true": { include hosts } + } + case $hoster { + "ubcece", "darmstadt", "ftcollins", "grnet": { include resolv } } - -} - -node penalosa inherits default { - include hosts }