X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=manifests%2Fsite.pp;h=ba5b9a128a8b7643e48610442ce87860dc8c5c7b;hb=d824f9b2ae6fe566ad3c47c9d4f0c6aaa1057242;hp=f82655b9aa49e4c0059c94b46e122f13280f09c1;hpb=98e61b2ab7c07a88f49314ab9bfaef0769c61b9b;p=mirror%2Fdsa-puppet.git diff --git a/manifests/site.pp b/manifests/site.pp index f82655b9a..ba5b9a128 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -19,132 +19,51 @@ Service { } node default { - include site - include munin - include syslog-ng - include sudo - include ssh - include debian-org - include monit - include ntp - include ntpdate - include ssl - include motd - include hardware - include nagios::client - include resolv + # we really should rename this one + include deprecated + include base - if $::hostname in [pasquini,tristano] { - include ganeti2 - } - - if $::kernel == Linux { - include linux - } elsif $::kernel == 'GNU/kFreeBSD' { - include kfreebsd - } - - if $::kvmdomain { - include acpi - } - - if $::mta == 'exim4' { - if getfromhash($site::nodeinfo, 'heavy_exim') { - include exim::mx - } else { - include exim - } - } else { - include postfix - } - - if $::lsbdistcodename != 'lenny' { - include unbound - } - - if getfromhash($site::nodeinfo, 'puppetmaster') { - include puppetmaster - } - - if getfromhash($site::nodeinfo, 'muninmaster') { - include munin::master - } - - if getfromhash($site::nodeinfo, 'nagiosmaster') { - include nagios::server - } - - if getfromhash($site::nodeinfo, 'buildd') { - include buildd - } - - if $::hostname in [chopin,franck,morricone,bizet] { - include roles::dakmaster - } + # this is magic: it will include whatever classes says we should + # include, based on the value of the "classes" array + hiera_include('classes') - if getfromhash($site::nodeinfo, 'apache2_security_mirror') { - include roles::security_mirror + include roles::pubsub::client + class { 'roles::udldap::client': + ensure => absent } - if getfromhash($site::nodeinfo, 'apache2_www_mirror') { - include roles::www_mirror - } - - if getfromhash($site::nodeinfo, 'apache2_backports_mirror') { - include roles::backports_mirror - } - - if getfromhash($site::nodeinfo, 'apache2_ftp-upcoming_mirror') { - include roles::ftp-upcoming_mirror - } - - if $::apache2 { - include apache2 - } - - if $::rsyncd { - include rsyncd-log - } - - if $::hostname in [ravel,senfl,orff,draghi,diamond] { - include named::authoritative - } elsif $::hostname in [geo1,geo2,geo3] { - include named::geodns - } elsif $::hostname == 'liszt' { - include named::recursor + if getfromhash($deprecated::nodeinfo, 'ganeti') { + include ganeti2 } - if $::hostname in [diabelli,nono,spohr] { - include dacs + if $::kernel == 'Linux' { + include linux + include acpi } - if $::hostname in [beethoven,duarte,spohr,stabile] { - include nfs-server + if $::hostname in [buxtehude,milanollo,lw01,lw02,lw03,lw04,lw09,lw10,senfter,gretchaninov,sibelius] { + include nfs_server } if $::brokenhosts { include hosts } - if $::portforwarder_user_exists { - include portforwarder - } - - include samhain - - if $::hostname in [chopin,geo3,soler,wieck] { - include debian-org::radvd - } - - if ($::postgres84 or $::postgres90) { - include postgres + if $::samhain { + include samhain } if $::spamd { munin::check { 'spamassassin': } } - if $::hostname in [chopin,franck,kassia,klecker,morricone,ravel,bizet] { - include vsftpd + if $::hostname == 'pkgmirror-csail' { + include varnish_pkgmirror + } + + if $::apache2 { + if ! defined(Class['apache2']) { + fail('We have apache installed but no role pulled it in.') + } } }