X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=d7a965dddee7e3c7b57cb9b8b0c4b2882f25f82f;hb=d06497885ecd69ba03a8c838c3ff6a4499821b44;hp=ef2d699c479184cf8decb7cb108d1446d9f8a221;hpb=d97c26c38a37e51c312d9d3639f2d271358be6c8;p=dsa-puppet.git diff --git a/manifests/site.pp b/manifests/site.pp index ef2d699c..d7a965dd 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -15,9 +15,9 @@ Exec { node default { $localinfo = yamlinfo('*', "/etc/puppet/modules/debian-org/misc/local.yaml") - $nodeinfo = nodeinfo($fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml") - $allnodeinfo = allnodeinfo("sshRSAHostKey ipHostNumber", "purpose mXRecord") - notice( sprintf("hoster for %s is %s", $fqdn, getfromhash($nodeinfo, 'hoster', 'name') ) ) + $nodeinfo = nodeinfo($::fqdn, "/etc/puppet/modules/debian-org/misc/local.yaml") + $allnodeinfo = allnodeinfo("sshRSAHostKey ipHostNumber", "purpose mXRecord physicalHost purpose") + notice( sprintf("hoster for %s is %s", $::fqdn, getfromhash($nodeinfo, 'hoster', 'name') ) ) include munin-node include syslog-ng @@ -27,44 +27,43 @@ node default { include monit include apt-keys include ntp + include ntpdate include ssl - include motd - case $hostname { + case $::hostname { finzi,fano,fasch,field: { include kfreebsd } } - case $smartarraycontroller { - "true": { include debian-proliant } + if $::smartarraycontroller { + include debian-proliant } - case $kvmdomain { - "true": { - package { acpid: ensure => installed } - case getfromhash($nodeinfo, 'squeeze') { - true: { package { acpi-support-base: ensure => installed } } - } - } + + if $::productname == 'PowerEdge 2850' { + include megactl } - case $mptraid { - "true": { include "raidmpt" } + + if $::mptraid { + include raidmpt + } + + if $::kvmdomain { + include acpi } - case $mta { - "exim4": { - case getfromhash($nodeinfo, 'heavy_exim') { - true: { include exim::mx } - default: { include exim } - } + if $::mta == 'exim4' { + case getfromhash($nodeinfo, 'heavy_exim') { + true: { include exim::mx } + default: { include exim } } } - case getfromhash($nodeinfo, 'puppetmaster') { - true: { include puppetmaster } + if getfromhash($nodeinfo, 'puppetmaster') { + include puppetmaster } - case getfromhash($nodeinfo, 'muninmaster') { - true: { include munin-node::master } + if getfromhash($nodeinfo, 'muninmaster') { + include munin-node::master } case getfromhash($nodeinfo, 'nagiosmaster') { @@ -72,91 +71,85 @@ node default { default: { include nagios::client } } - case $apache2 { - "true": { - case getfromhash($nodeinfo, 'apache2_security_mirror') { - true: { include apache2::security_mirror } - } - case getfromhash($nodeinfo, 'apache2_www_mirror') { - true: { include apache2::www_mirror } - } - include apache2 + if $::apache2 { + if getfromhash($nodeinfo, 'apache2_security_mirror') { + include apache2::security_mirror } + if getfromhash($nodeinfo, 'apache2_www_mirror') { + include apache2::www_mirror + } + if getfromhash($nodeinfo, 'apache2_backports_mirror') { + include apache2::backports_mirror + } + if getfromhash($nodeinfo, 'apache2_ftp-upcoming_mirror') { + include apache2::ftp-upcoming_mirror + } + include apache2 } - case $rsyncd { - "true": { include rsyncd-log } + if $::rsyncd { + include rsyncd-log } - case getfromhash($nodeinfo, 'buildd') { - true: { - include buildd - } + if getfromhash($nodeinfo, 'buildd') { + include buildd } - case $hostname { - klecker,ravel,senfl,orff,draghi: { include named::authoritative } + case $::hostname { + ravel,senfl,orff,draghi,diamond: { include named::authoritative } geo1,geo2,geo3: { include named::geodns } liszt: { include named::recursor } } - case $hostname { + + case $::hostname { franck,master,lobos,samosa,spohr,widor: { include unbound } } - case getfromhash($nodeinfo, 'squeeze') { - true: { include unbound } + + if $::lsbdistcodename != 'lenny' { + include unbound } + include resolv - case $kernel { - Linux: { - include ferm - include ferm::per-host - case $rsyncd { - "true": { include ferm::rsync } - } - } + if $::kernel == 'Linux' { + include ferm + include ferm::per-host + } + + case $::hostname { + diabelli,nono,spohr: { include dacs } } - case $hostname { - beethoven,duarte,ravel,spohr,stabile: { + case $::hostname { + beethoven,duarte,spohr,stabile: { include nfs-server } } - case $brokenhosts { - "true": { include hosts } + if $::brokenhosts { + include hosts } - case $portforwarder_user_exists { - "true": { include portforwarder } + + if $::portforwarder_user_exists { + include portforwarder } include samhain - case $hostname { - byrd,schuetz,tchaikovsky: { - include krb - } - draghi,quantz: { - include krb - include afs - } - lamb,locke,rautavaara,rietz: { - include krb - include afs::server - } - } - - case $hostname { + case $::hostname { chopin,geo3,soler,wieck: { include debian-radvd } } - case $kernel { - Linux: { include entropykey } + if $::kernel == 'Linux' { + include entropykey } + if ($::postgres84 or $::postgres90) { + include postgres + } } # vim:set et: