]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
Make milanollo do more rsync
[dsa-puppet.git] / modules / roles / manifests / init.pp
1 class roles {
2
3         if getfromhash($site::nodeinfo, 'puppetmaster') {
4                 include puppetmaster
5         }
6
7         if getfromhash($site::nodeinfo, 'muninmaster') {
8                 include munin::master
9         }
10
11         #if getfromhash($site::nodeinfo, 'nagiosmaster') {
12         #       include nagios::server
13         #}
14
15         if getfromhash($site::nodeinfo, 'buildd') {
16                 include buildd
17         }
18
19         if getfromhash($site::nodeinfo, 'porterbox') {
20                 include porterbox
21         }
22
23         if getfromhash($site::nodeinfo, 'bugs_mirror') {
24                 include roles::bugs_mirror
25         }
26
27         if getfromhash($site::nodeinfo, 'ftp_master') {
28                 include roles::ftp_master
29                 include roles::dakmaster
30         }
31
32         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
33                 include roles::security_mirror
34         }
35
36         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
37                 include roles::www_mirror
38         }
39
40         if getfromhash($site::nodeinfo, 'ftp.d.o') {
41                 include roles::ftp
42         }
43
44         if getfromhash($site::nodeinfo, 'ftp.upload.d.o') {
45                 include roles::ftp_upload
46         }
47
48         if getfromhash($site::nodeinfo, 'security_master') {
49                 include roles::security_master
50                 include roles::dakmaster
51         }
52
53         if getfromhash($site::nodeinfo, 'www_master') {
54                 include roles::www_master
55         }
56
57         if getfromhash($site::nodeinfo, 'keyring') {
58                 include roles::keyring
59         }
60
61         if getfromhash($site::nodeinfo, 'wiki') {
62                 include roles::wiki
63         }
64
65         if getfromhash($site::nodeinfo, 'syncproxy') {
66                 include roles::syncproxy
67         }
68
69         if getfromhash($site::nodeinfo, 'static_master') {
70                 include roles::static_master
71         }
72
73         if getfromhash($site::nodeinfo, 'static_mirror') {
74                 include roles::static_mirror
75         } elsif getfromhash($site::nodeinfo, 'static_source') {
76                 include roles::static_source
77         }
78
79         if getfromhash($site::nodeinfo, 'weblog_provider') {
80                 include roles::weblog_provider
81         }
82
83         if getfromhash($site::nodeinfo, 'mailrelay') {
84                 include roles::mailrelay
85         }
86
87         if $::hostname in [ravel] {
88                 include roles::weblog_destination
89         }
90 }