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