]> git.donarmstrong.com Git - dsa-puppet.git/blob - manifests/site.pp
try an rsync class
[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         } elsif $::mta == 'postfix' {
59                 include postfix
60         } else {
61                 include exim
62         }
63
64         if $::apache2 {
65                 include apache2
66         }
67
68         if $::hostname in [ravel,senfl,orff,draghi,diamond] {
69                 include named::authoritative
70         } elsif $::hostname in [geo1,geo2,geo3] {
71                 include named::geodns
72         }
73
74         if $::hostname in [diabelli,nono,spohr] {
75                 include dacs
76         }
77
78         if $::hostname in [beethoven,duarte,spohr,stabile] {
79                 include nfs-server
80         }
81
82         if $::brokenhosts {
83                 include hosts
84         }
85
86         if $::portforwarder_user_exists {
87                 include portforwarder
88         }
89
90         include samhain
91
92         if $::hostname in [chopin,geo3,soler,wieck] {
93                 include debian-org::radvd
94         }
95
96         if ($::postgres84 or $::postgres90) {
97                 include postgres
98         }
99
100         if $::spamd {
101                 munin::check { 'spamassassin': }
102         }
103 }