]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
More workarounds
[dsa-puppet.git] / modules / roles / manifests / init.pp
1 class roles {
2
3         if has_role('puppetmaster') {
4                 include puppetmaster
5         }
6
7         if has_role('muninmaster') {
8                 include munin::master
9         }
10
11         if getfromhash($site::nodeinfo, 'nagiosmaster') {
12         #       include nagios::server
13                 ssl::service { 'nagios.debian.org':
14                         notify => Service['apache2'],
15                 }
16         }
17
18         # XXX: turn this into a real role
19         if getfromhash($site::nodeinfo, 'buildd') {
20                 include buildd
21         }
22
23         # XXX: turn this into a real role
24         if getfromhash($site::nodeinfo, 'porterbox') {
25                 include porterbox
26         }
27
28         if has_role('bugs_mirror') {
29                 include roles::bugs_mirror
30         }
31
32         if has_role('ftp_master') {
33                 include roles::ftp_master
34                 include roles::dakmaster
35         }
36
37         # XXX: turn this into a real role
38         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
39                 include roles::security_mirror
40         }
41
42         if has_role('apache2_www_mirror') {
43                 include roles::www_mirror
44         }
45
46         if has_role('ftp.d.o') {
47                 include roles::ftp
48         }
49
50         if has_role('ftp.upload.d.o') {
51                 include roles::ftp_upload
52         }
53
54         if has_role('security_master') {
55                 include roles::security_master
56                 include roles::dakmaster
57         }
58
59         if has_role('www_master') {
60                 include roles::www_master
61         }
62
63         if has_role('keyring') {
64                 include roles::keyring
65         }
66
67         if has_role('wiki') {
68                 include roles::wiki
69         }
70
71         if has_role('syncproxy') {
72                 include roles::syncproxy
73         }
74
75         if has_role('static_master') {
76                 include roles::static_master
77         }
78
79         if has_role('static_mirror') {
80                 include roles::static_mirror
81         } elsif has_role('static_source') {
82                 include roles::static_source
83         }
84
85         if has_role('weblog_provider') {
86                 include roles::weblog_provider
87         }
88
89         if has_role('mailrelay') {
90                 include roles::mailrelay
91         }
92
93         if has_role('pubsub') {
94                 include roles::pubsub
95         }
96
97         if has_role('dbmaster') {
98                 include roles::dbmaster
99         }
100
101         if has_role('dns_primary') {
102                 include named::primary
103         }
104         if has_role('dns_secondary') {
105                 include named::authoritative
106         }
107
108         if has_role('weblog_destination') {
109                 include roles::weblog_destination
110         }
111
112         if has_role('vote') {
113                 include roles::vote
114         }
115
116         if has_role('security_tracker') {
117                 include roles::security_tracker
118         }
119
120         if has_role('lists') {
121                 include roles::lists
122         }
123
124         if has_role('rtmaster') {
125                 include roles::rtmaster
126         }
127
128         if has_role('udd') {
129                 include roles::udd
130         }
131
132         if has_role('buildd_master') {
133                 include roles::buildd_master
134         }
135
136         if has_role('piuparts') {
137                 include roles::piuparts
138         }
139
140         if has_role('contributors') {
141                 include roles::contributors
142         }
143
144         if has_role('nm') {
145                 include roles::nm
146         }
147
148         if has_role('release') {
149                 include roles::release
150         }
151 }