]> git.donarmstrong.com Git - dsa-puppet.git/blob - manifests/site.pp
11bf95821f625f6a06c6c624a890d3bfd2e261e6
[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
38         if $::hostname in [pasquini,tristano] {
39                 include ganeti2
40         }
41
42         if $::kernel == Linux {
43                 include linux
44         } elsif $::kernel == 'GNU/kFreeBSD' {
45                 include kfreebsd
46         }
47
48         if $::kvmdomain {
49                 include acpi
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 $::lsbdistcodename != 'lenny' {
63                 include unbound
64         }
65
66         if $::apache2 {
67                 include apache2
68         }
69
70         if $::rsyncd {
71                 include rsyncd-log
72         }
73
74         if $::hostname in [ravel,senfl,orff,draghi,diamond] {
75                 include named::authoritative
76         } elsif $::hostname in [geo1,geo2,geo3] {
77                 include named::geodns
78         } elsif $::hostname == 'liszt' {
79                 include named::recursor
80         }
81
82         if $::hostname in [diabelli,nono,spohr] {
83                 include dacs
84         }
85
86         if $::hostname in [beethoven,duarte,spohr,stabile] {
87                 include nfs-server
88         }
89
90         if $::brokenhosts {
91                 include hosts
92         }
93
94         if $::portforwarder_user_exists {
95                 include portforwarder
96         }
97
98         include samhain
99
100         if $::hostname in [chopin,geo3,soler,wieck] {
101                 include debian-org::radvd
102         }
103
104         if ($::postgres84 or $::postgres90) {
105                 include postgres
106         }
107
108         if $::spamd {
109                 munin::check { 'spamassassin': }
110         }
111
112         if $::hostname in [chopin] {
113                 include vsftpd
114         }
115 }