]> git.donarmstrong.com Git - dsa-puppet.git/blob - manifests/site.pp
some cleanup of bacula classes
[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
39         if $::hostname in [pasquini,tristano,bertali,boito] {
40                 include ganeti2
41         }
42
43         if $::hostname == 'dinis' {
44                 include bacula::director
45         }
46
47         if $::hostname in [berlioz, biber, draghi] {
48                 include bacula::client
49                 @@bacula::node { $::fqdn: }
50         }
51
52         if $::hostname == 'beethoven' {
53                 include bacula::storage
54         }
55
56         if $::kernel == Linux {
57                 include linux
58                 if $::kvmdomain {
59                         include acpi
60                 }
61         } elsif $::kernel == 'GNU/kFreeBSD' {
62                 include kfreebsd
63         }
64
65         if $::mta == 'exim4' {
66                 if getfromhash($site::nodeinfo, 'heavy_exim') {
67                         include exim::mx
68                 } else {
69                         include exim
70                 }
71         } elsif $::mta == 'postfix' {
72                 include postfix
73         } else {
74                 include exim
75         }
76
77         if $::apache2 {
78                 include apache2
79         }
80
81         if $::hostname in [ravel,senfl,orff,draghi,diamond] {
82                 include named::authoritative
83         } elsif $::hostname in [geo1,geo2,geo3] {
84                 include named::geodns
85         }
86
87         if $::hostname in [diabelli,nono,spohr] {
88                 include dacs
89         }
90
91         if $::hostname in [beethoven,duarte,spohr,stabile,beach] {
92                 include nfs-server
93         }
94
95         if $::brokenhosts {
96                 include hosts
97         }
98
99         if $::portforwarder_user_exists {
100                 include portforwarder
101         }
102
103         include samhain
104
105         if $::hostname in [chopin,geo3,soler,wieck] {
106                 include debian-org::radvd
107         }
108
109         if ($::postgres84 or $::postgres90) {
110                 include postgres
111         }
112
113         if $::spamd {
114                 munin::check { 'spamassassin': }
115         }
116 }