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