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