c1cdd53db0ba602be91fd83acb2816af2f72fd7e
[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         # this is magic: it will include whatever classes says we should
23         # include, based on the value of the "classes" array
24         hiera_include('classes')
25
26         include roles::pubsub::client
27         class { 'roles::udldap::client':
28                 ensure => absent
29         }
30
31         if getfromhash($site::nodeinfo, 'ganeti') {
32                 include ganeti2
33         }
34
35         if $::kernel == 'Linux' {
36                 include linux
37                 include acpi
38         }
39
40         if $::mta == 'exim4' {
41                 if getfromhash($site::nodeinfo, 'heavy_exim') {
42                         include exim::mx
43                 } else {
44                         include exim
45                 }
46         } elsif $::mta == 'postfix' {
47                 include postfix
48         } else {
49                 include exim
50         }
51
52         if $::apache2 {
53                 include apache2
54         }
55
56         if $::hostname in [buxtehude,milanollo,lw01,lw02,lw03,lw04,lw09,lw10,senfter,gretchaninov,sibelius] {
57                 include nfs_server
58         }
59
60         if $::brokenhosts {
61                 include hosts
62         }
63
64         if $::samhain {
65                 include samhain
66         }
67
68         if $::hostname in [geo3,wieck] {
69                 include debian_org::radvd
70         }
71
72         if $::spamd {
73                 munin::check { 'spamassassin': }
74         }
75
76         if $::hostname == 'pkgmirror-csail' {
77                 include varnish_pkgmirror
78         }
79 }