]> git.donarmstrong.com Git - dsa-puppet.git/blob - modules/roles/manifests/init.pp
Revert porterbox fiddlings
[dsa-puppet.git] / modules / roles / manifests / init.pp
1 # = Class: roles
2 #
3 # Lookup role and include relevant classes for roles
4 #
5 # == Sample Usage:
6 #
7 #   include roles
8 #
9 class roles {
10
11         if has_role('puppetmaster') {
12                 include puppetmaster
13         }
14
15         if has_role('muninmaster') {
16                 include munin::master
17         }
18
19         if has_role('nagiosmaster') {
20         #       include nagios::server
21                 ssl::service { 'nagios.debian.org':
22                         notify => Service['apache2'],
23                 }
24         }
25
26         # XXX: turn this into a real role
27         if getfromhash($site::nodeinfo, 'buildd') {
28                 include buildd
29         }
30
31         # XXX: turn this into a real role
32         if getfromhash($site::nodeinfo, 'porterbox') {
33                 include porterbox
34         }
35
36         if has_role('bugs_mirror') {
37                 include roles::bugs_mirror
38         }
39
40         if has_role('bugs_base') {
41                 ssl::service { 'bugs.debian.org':
42                         notify => Service['apache2'],
43                 }
44         }
45         if has_role('bugs_master') {
46                 ssl::service { 'bugs-master.debian.org':
47                         notify => Service['apache2'],
48                 }
49         }
50
51         if has_role('ftp_master') {
52                 include roles::ftp_master
53                 include roles::dakmaster
54         }
55
56         # XXX: turn this into a real role
57         if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
58                 include roles::security_mirror
59         }
60
61         # XXX: turn this into a real role
62         if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
63                 include roles::www_mirror
64         }
65
66         if has_role('ftp.d.o') {
67                 include roles::ftp
68         }
69
70         if has_role('ftp.upload.d.o') {
71                 include roles::ftp_upload
72         }
73
74         if has_role('git_master') {
75                 include roles::git_master
76         }
77
78         if has_role('people') {
79                 ssl::service { 'people.debian.org':
80                         notify => Service['apache2'],
81                 }
82         }
83
84         if has_role('security_master') {
85                 include roles::security_master
86                 include roles::dakmaster
87         }
88
89         if has_role('www_master') {
90                 include roles::www_master
91         }
92
93         if has_role('keyring') {
94                 include roles::keyring
95         }
96
97         if has_role('wiki') {
98                 include roles::wiki
99         }
100
101         if has_role('syncproxy') {
102                 include roles::syncproxy
103         }
104
105         if has_role('static_master') {
106                 include roles::static_master
107         }
108
109         if has_role('static_mirror') {
110                 include roles::static_mirror
111         } elsif has_role('static_source') {
112                 include roles::static_source
113         }
114
115         if has_role('weblog_provider') {
116                 include roles::weblog_provider
117         }
118
119         if has_role('mailrelay') {
120                 include roles::mailrelay
121         }
122
123         if has_role('pubsub') {
124                 include roles::pubsub
125         }
126
127         if has_role('dbmaster') {
128                 include roles::dbmaster
129         }
130
131         if has_role('dns_primary') {
132                 include named::primary
133         }
134
135         if has_role('weblog_destination') {
136                 include roles::weblog_destination
137         }
138
139         if has_role('vote') {
140                 include roles::vote
141         }
142
143         if has_role('security_tracker') {
144                 include roles::security_tracker
145         }
146
147         if has_role('lists') {
148                 include roles::lists
149         }
150
151         if has_role('rtmaster') {
152                 include roles::rtmaster
153         }
154
155         if has_role('udd') {
156                 include roles::udd
157         }
158
159         if has_role('sso') {
160                 include roles::sso
161         }
162
163         if has_role('tracker') {
164                 include roles::tracker
165         }
166
167         if has_role('buildd_master') {
168                 include roles::buildd_master
169         }
170
171         if has_role('buildd_ports_master') {
172                 include roles::buildd_ports_master
173         }
174
175         if has_role('piuparts') {
176                 include roles::piuparts
177         }
178
179         if has_role('contributors') {
180                 include roles::contributors
181         }
182
183         if has_role('nm') {
184                 include roles::nm
185         }
186
187         if has_role('release') {
188                 include roles::release
189         }
190
191         if has_role('rtc') {
192                 include roles::rtc
193         }
194
195         if has_role('keystone') {
196                 include roles::keystone
197         }
198
199         if has_role('postgres_backup_server') {
200                 include postgres::backup_server
201         }
202
203         if has_role('packages') {
204                 ssl::service { 'packages.debian.org':
205                         notify => Service['apache2'],
206                 }
207         }
208
209         if has_role('qamaster') {
210                 ssl::service { 'qa.debian.org':
211                         notify => Service['apache2'],
212                 }
213         }
214
215         if has_role('packagesqamaster') {
216                 ssl::service { 'packages.qa.debian.org':
217                         notify => Service['apache2'],
218                 }
219         }
220
221         if has_role('gobby_debian_org') {
222                 ssl::service { 'gobby.debian.org':
223                         tlsaport => 0,
224                 }
225         }
226 }