Turn off accept_ra sysctl everywhere
[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 deprecated
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($deprecated::nodeinfo, 'ganeti') {
36                 include ganeti2
37         }
38
39         if $::kernel == 'Linux' {
40                 include linux
41                 include acpi
42         }
43
44         if $::hostname in [buxtehude,milanollo,lw01,lw02,lw03,lw04,lw09,lw10,senfter,gretchaninov,sibelius] {
45                 include nfs_server
46         }
47
48         if $::brokenhosts {
49                 include hosts
50         }
51
52         if $::samhain {
53                 include samhain
54         }
55
56         if $::spamd {
57                 munin::check { 'spamassassin': }
58         }
59
60         if $::hostname == 'pkgmirror-csail' {
61                 include varnish_pkgmirror
62         }
63
64         if $::apache2 {
65                 if ! defined(Class['apache2']) {
66                         fail('We have apache installed but no role pulled it in.')
67                 }
68         }
69 }