X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=a44821f37898740d05b2852bd27297c92aa99bce;hb=3161cb2b71f606f6384c7dfe44674f8f27ed1b19;hp=86300969088c9fb4deb139cbf76619016b25e3e9;hpb=e931e24ea345240512fad403c6e17ebb3789c8c2;p=mirror%2Fdsa-puppet.git diff --git a/manifests/site.pp b/manifests/site.pp index 863009690..a44821f37 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -14,56 +14,161 @@ 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 physicalHost purpose") + notice( sprintf("hoster for %s is %s", $fqdn, getfromhash($nodeinfo, 'hoster', 'name') ) ) + include munin-node + include syslog-ng include sudo + include ssh include debian-org include monit + include apt-keys + include ntp + include ssl + include motd - include samhain - $nodeinfo = nodeinfo($fqdn, "/home/sgran/local.yaml") - debug($nodeinfo) + case $hostname { + finzi,fano,fasch,field: { include kfreebsd } + } case $smartarraycontroller { "true": { include debian-proliant } - default: {} + } + case $kvmdomain { + "true": { + case $debarchitecture { + kfreebsd-amd64,kfreebsd-i386: { + } + default: { + package { acpid: ensure => installed } + case getfromhash($nodeinfo, 'squeeze') { + true: { package { acpi-support-base: ensure => installed } } + } + } + } + } + } + case $mptraid { + "true": { include "raidmpt" } + } + case $productname { + "PowerEdge 2850": { include megactl } } case $mta { - "exim4": { include exim } - default: {} + "exim4": { + case getfromhash($nodeinfo, 'heavy_exim') { + true: { include exim::mx } + default: { include exim } + } + } + } + + case getfromhash($nodeinfo, 'puppetmaster') { + true: { include puppetmaster } + } + + case getfromhash($nodeinfo, 'muninmaster') { + true: { include munin-node::master } + } + + case getfromhash($nodeinfo, 'nagiosmaster') { + true: { include nagios::server } + 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 } + } + case getfromhash($nodeinfo, 'apache2_backports_mirror') { + true: { include apache2::backports_mirror } + } + case getfromhash($nodeinfo, 'apache2_ftp-upcoming_mirror') { + true: { include apache2::ftp-upcoming_mirror } + } + include apache2 + } + } + + case $rsyncd { + "true": { include rsyncd-log } + } + + + case getfromhash($nodeinfo, 'buildd') { + true: { + include buildd + } } + case $hostname { + klecker,ravel,senfl,orff,draghi,diamond: { include named::authoritative } + geo1,geo2,geo3: { include named::geodns } + liszt: { include named::recursor } + } + case $hostname { + franck,master,lobos,samosa,spohr,widor: { include unbound } + } + case getfromhash($nodeinfo, 'squeeze') { + true: { include unbound } + } + case getfromhash($nodeinfo, 'wheezy') { + true: { include unbound } + } + include resolv + + case $kernel { + Linux: { + include ferm + include ferm::per-host + case $rsyncd { + "true": { include ferm::rsync } + } + } + } case $hostname { - spohr: { - include nagios::server + beethoven,duarte,ravel,spohr,stabile: { + include nfs-server } - default: { - include nagios::client - } } - case $apache2 { - "true": { case $hostname { - carver,rore,tartini: { include apache2 } - default: {} - } } - default: {} + case $brokenhosts { + "true": { include hosts } + } + case $portforwarder_user_exists { + "true": { include portforwarder } } + include samhain + case $hostname { - ancina,brahms,goedel,goetz,lafayette,malo,praetorius,puccini: - { include buildd } - default: {} + byrd,schuetz,tchaikovsky,draghi,quantz,lamb,locke,rautavaara,rietz: { + include krb + } } + case $hostname { - geo1,geo2,geo3: - { include geodns } - default: {} + chopin,geo3,soler,wieck: { + include debian-radvd + } + } + + case $kernel { + Linux: { include entropykey } } -} -node penalosa inherits default { - include hosts } + +# vim:set et: +# vim:set sts=4 ts=4: +# vim:set shiftwidth=4: