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