]> git.donarmstrong.com Git - dsa-puppet.git/blob - manifests/site.pp
try to order these a bit
[dsa-puppet.git] / manifests / site.pp
1 Package {
2         require => File['/etc/apt/apt.conf.d/local-recommends'],
3         stage   => deploy_infra
4 }
5
6 File {
7         owner  => root,
8         group  => root,
9         mode   => '0444',
10         ensure => file,
11 }
12
13 Exec {
14         path => '/usr/bin:/usr/sbin:/bin:/sbin'
15 }
16
17 Service {
18         hasrestart => true,
19         hasstatus  => true,
20 }
21
22 node default {
23         include site
24         include munin
25         include syslog-ng
26         include sudo
27         include ssh
28         include debian-org
29         include monit
30         include ntp
31         include ntpdate
32         include ssl
33         include motd
34         include hardware
35         include nagios::client
36         include resolv
37         include roles
38
39         if $::hostname in [pasquini,tristano] {
40                 include ganeti2
41         }
42
43         if $::kernel == Linux {
44                 include linux
45         } elsif $::kernel == 'GNU/kFreeBSD' {
46                 include kfreebsd
47         }
48
49         if $::kvmdomain {
50                 include acpi
51         }
52
53         if $::mta == 'exim4' {
54                 if getfromhash($site::nodeinfo, 'heavy_exim') {
55                         include exim::mx
56                 } else {
57                         include exim
58                 }
59         } else {
60                 include postfix
61         }
62
63         if $::lsbdistcodename != 'lenny' {
64                 include unbound
65         }
66
67         if $::apache2 {
68                 include apache2
69         }
70
71         if $::rsyncd {
72                 include rsyncd-log
73         }
74
75         if $::hostname in [ravel,senfl,orff,draghi,diamond] {
76                 include named::authoritative
77         } elsif $::hostname in [geo1,geo2,geo3] {
78                 include named::geodns
79         } elsif $::hostname == 'liszt' {
80                 include named::recursor
81         }
82
83         if $::hostname in [diabelli,nono,spohr] {
84                 include dacs
85         }
86
87         if $::hostname in [beethoven,duarte,spohr,stabile] {
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 $::spamd {
110                 munin::check { 'spamassassin': }
111         }
112
113         if $::hostname in [chopin,franck,ravel] {
114                 include vsftpd
115         }
116 }