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