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