]> git.donarmstrong.com Git - dsa-puppet.git/blob - manifests/site.pp
multipath config
[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         include site
23         include munin
24         include syslog-ng
25         include sudo
26         include ssh
27         include debian-org
28         include monit
29         include ntp
30         include ntpdate
31         include ssl
32         include motd
33         include hardware
34         include nagios::client
35         include resolv
36         include roles
37         include unbound
38         include bacula::client
39
40         if $::hostname in [pasquini,tristano,bertali,boito,byrd,clementi,czerny,rossini,bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14] {
41                 include ganeti2
42         }
43
44         if $::hostname in [bm-bl1,bm-bl2,bm-bl3,bm-bl4,bm-bl5,bm-bl6,bm-bl7,bm-bl8,bm-bl9,bm-bl10,bm-bl11,bm-bl12,bm-bl13,bm-bl14] {
45                 include multipath
46         }
47
48         if $::hostname == 'dinis' {
49                 include bacula::director
50         } else {
51                 package { 'bacula-console':
52                         ensure => purged;
53                 }
54
55                 file { '/etc/bacula/bconsole.conf':
56                         ensure => absent;
57                 }
58         }
59
60         if $::hostname == 'beethoven' {
61                 include bacula::storage
62         }
63
64         if $::kernel == Linux {
65                 include linux
66                 if $::kvmdomain {
67                         include acpi
68                 }
69         } elsif $::kernel == 'GNU/kFreeBSD' {
70                 include kfreebsd
71         }
72
73         if $::mta == 'exim4' {
74                 if getfromhash($site::nodeinfo, 'heavy_exim') {
75                         include exim::mx
76                 } else {
77                         include exim
78                 }
79         } elsif $::mta == 'postfix' {
80                 include postfix
81         } else {
82                 include exim
83         }
84
85         if $::apache2 {
86                 include apache2
87         }
88
89         if $::hostname in [ravel,senfl,orff,draghi,diamond,rietz] {
90                 include named::authoritative
91         } elsif $::hostname in [geo1,geo2,geo3] {
92                 include named::geodns
93         }
94
95         if $::hostname in [diabelli,nono,spohr] {
96                 include dacs
97         }
98
99         if $::hostname in [beethoven,spohr,stabile,beach,glinka] {
100                 include nfs-server
101         }
102
103         if $::hostname == 'vieuxtemps' {
104                 include varnish
105         }
106
107         if $::brokenhosts {
108                 include hosts
109         }
110
111         if $::portforwarder_user_exists {
112                 include portforwarder
113         }
114
115         if $::samhain {
116                 include samhain
117         }
118
119         if $::hostname in [chopin,geo3,soler,wieck] {
120                 include debian-org::radvd
121         }
122
123         if ($::postgres) {
124                 include postgres
125         }
126
127         if $::spamd {
128                 munin::check { 'spamassassin': }
129         }
130
131         if $::hoster {
132                 if $::hoster in [ynic] {
133                         include lldp
134                 }
135         }
136 }