0c178c135525fa29108b95e2e30d1c22fa4569d2
[mirror/dsa-puppet.git] / manifests / site.pp
1 Package {
2         require => File['/etc/apt/apt.conf.d/local-recommends']
3 }
4
5 File {
6         owner  => root,
7         group  => root,
8         mode   => '0444',
9         ensure => file,
10 }
11
12 Exec {
13         path => '/usr/bin:/usr/sbin:/bin:/sbin'
14 }
15
16 Service {
17         hasrestart => true,
18         hasstatus  => true,
19 }
20
21 node default {
22         # we really should rename this one
23         include site
24
25         # this is magic: it will include whatever classes says we should
26         # include, based on the value of the "classes" array
27         hiera_include('classes')
28
29         include roles::pubsub::client
30         class { 'roles::udldap::client':
31                 ensure => absent
32         }
33
34         if getfromhash($site::nodeinfo, 'ganeti') {
35                 include ganeti2
36         }
37
38         if $::kernel == 'Linux' {
39                 include linux
40                 include acpi
41         }
42
43         if $::mta == 'exim4' {
44                 if getfromhash($site::nodeinfo, 'heavy_exim') {
45                         include exim::mx
46                 } else {
47                         include exim
48                 }
49         } elsif $::mta == 'postfix' {
50                 include postfix
51         } else {
52                 include exim
53         }
54
55         if $::apache2 {
56                 include apache2
57         }
58
59         if $::hostname in [buxtehude,milanollo,lw01,lw02,lw03,lw04,lw09,lw10,senfter,gretchaninov,sibelius] {
60                 include nfs_server
61         }
62
63         if $::brokenhosts {
64                 include hosts
65         }
66
67         if $::samhain {
68                 include samhain
69         }
70
71         if $::hostname in [geo3,wieck] {
72                 include debian_org::radvd
73         }
74
75         if $::spamd {
76                 munin::check { 'spamassassin': }
77         }
78
79         if $::hostname == 'pkgmirror-csail' {
80                 include varnish_pkgmirror
81         }
82 }