lint fixes for the linux module
[mirror/dsa-puppet.git] / manifests / site.pp
index 3e4e39d..f6bce78 100644 (file)
@@ -20,7 +20,7 @@ Service {
 
 node default {
        # we really should rename this one
-       include site
+       include deprecated
        include base
 
        # this is magic: it will include whatever classes says we should
@@ -32,7 +32,7 @@ node default {
                ensure => absent
        }
 
-       if getfromhash($site::nodeinfo, 'ganeti') {
+       if getfromhash($deprecated::nodeinfo, 'ganeti') {
                include ganeti2
        }
 
@@ -41,23 +41,7 @@ node default {
                include acpi
        }
 
-       if $::mta == 'exim4' {
-               if getfromhash($site::nodeinfo, 'heavy_exim') {
-                       include exim::mx
-               } else {
-                       include exim
-               }
-       } elsif $::mta == 'postfix' {
-               include postfix
-       } else {
-               include exim
-       }
-
-       if $::apache2 {
-               include apache2
-       }
-
-       if $::hostname in [buxtehude,milanollo,lw01,lw02,lw03,lw04,lw09,lw10,senfter,gretchaninov,sibelius] {
+       if $::hostname in [buxtehude,milanollo,lw01,lw02,lw03,lw04,lw09,lw10,gretchaninov,sibelius] {
                include nfs_server
        }
 
@@ -69,10 +53,6 @@ node default {
                include samhain
        }
 
-       if $::hostname in [geo3,wieck] {
-               include debian_org::radvd
-       }
-
        if $::spamd {
                munin::check { 'spamassassin': }
        }
@@ -80,4 +60,10 @@ node default {
        if $::hostname == 'pkgmirror-csail' {
                include varnish_pkgmirror
        }
+
+       if $::apache2 {
+               if ! defined(Class['apache2']) {
+                       fail('We have apache installed but no role pulled it in.')
+               }
+       }
 }