]> git.donarmstrong.com Git - dsa-puppet.git/blob - manifests/site.pp
added ganeti2 module
[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
37         if $::hostname in [pasquini,tristano] {
38                 include ganeti2
39         }
40
41         if $::hostname in [finzi,fano,fasch,field] {
42                 include kfreebsd
43         }
44
45         if $::kvmdomain {
46                 include acpi
47         }
48
49         if $::mta == 'exim4' {
50                 if getfromhash($site::nodeinfo, 'heavy_exim') {
51                         include exim::mx
52                 } else {
53                         include exim
54                 }
55         }
56
57         if $::lsbdistcodename != 'lenny' {
58                 include unbound
59         }
60
61         if getfromhash($site::nodeinfo, 'puppetmaster') {
62                 include puppetmaster
63         }
64
65         if getfromhash($site::nodeinfo, 'muninmaster') {
66                 include munin::master
67         }
68
69         if getfromhash($site::nodeinfo, 'nagiosmaster') {
70                 include nagios::server
71         }
72
73         if getfromhash($site::nodeinfo, 'buildd') {
74                 include buildd
75         }
76
77         if $::hostname in [chopin,franck,morricone,bizet] {
78                 include roles::dakmaster
79         }
80
81         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
82                 include roles::security_mirror
83         }
84
85         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
86                 include roles::www_mirror
87         }
88
89         if getfromhash($site::nodeinfo, 'apache2_backports_mirror') {
90                 include roles::backports_mirror
91         }
92
93         if getfromhash($site::nodeinfo, 'apache2_ftp-upcoming_mirror') {
94                 include roles::ftp-upcoming_mirror
95         }
96
97         if $::apache2 {
98                 include apache2
99         }
100
101         if $::rsyncd {
102                 include rsyncd-log
103         }
104
105         if $::hostname in [ravel,senfl,orff,draghi,diamond] {
106                 include named::authoritative
107         } elsif $::hostname in [geo1,geo2,geo3] {
108                 include named::geodns
109         } elsif $::hostname == 'liszt' {
110                 include named::recursor
111         }
112
113         if $::kernel == 'Linux' {
114                 include ferm
115                 include ferm::per-host
116                 include entropykey
117         }
118
119         if $::hostname in [diabelli,nono,spohr] {
120                 include dacs
121         }
122
123         if $::hostname in [beethoven,duarte,spohr,stabile] {
124                 include nfs-server
125         }
126
127         if $::brokenhosts {
128                 include hosts
129         }
130
131         if $::portforwarder_user_exists {
132                 include portforwarder
133         }
134
135         include samhain
136
137         if $::hostname in [chopin,geo3,soler,wieck] {
138                 include debian-org::radvd
139         }
140
141         if ($::postgres84 or $::postgres90) {
142                 include postgres
143         }
144
145         if $::spamd {
146                 munin::check { 'spamassassin': }
147         }
148
149         if $::vsftpd {
150                 package { 'logtail':
151                         ensure => installed
152                 }
153                 munin::check { 'vsftpd': }
154                 munin::check { 'ps_vsftpd':
155                         script => 'ps_'
156                 }
157         }
158 }