3 # Lookup role and include relevant classes for roles
11 if has_role('puppetmaster') {
15 if has_role('muninmaster') {
19 if has_role('nagiosmaster') {
20 # include nagios::server
21 ssl::service { 'nagios.debian.org':
22 notify => Service['apache2'],
26 # XXX: turn this into a real role
27 if getfromhash($site::nodeinfo, 'buildd') {
31 # XXX: turn this into a real role
32 if getfromhash($site::nodeinfo, 'porterbox') {
36 if has_role('archive_master') {
37 include archive_master
40 if has_role('bugs_mirror') {
41 include roles::bugs_mirror
44 if has_role('bugs_base') {
45 ssl::service { 'bugs.debian.org':
46 notify => Service['apache2'],
49 if has_role('bugs_master') {
50 ssl::service { 'bugs-master.debian.org':
51 notify => Service['apache2'],
56 if has_role('ftp_master') {
57 include roles::ftp_master
58 include roles::dakmaster
61 if has_role('api.ftp-master') {
62 ssl::service { 'api.ftp-master.debian.org':
63 notify => Service['apache2'],
67 if has_role('manpages') {
68 ssl::service { 'manpages.debian.org':
69 notify => Service['apache2'],
74 # XXX: turn this into a real role
75 if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
76 include roles::security_mirror
79 if has_role('mirror_debug') {
80 include roles::debug_mirror
83 if has_role('ftp.d.o') {
87 if has_role('ftp.upload.d.o') {
88 include roles::ftp_upload
91 if has_role('ssh.upload.d.o') {
92 include roles::ssh_upload
95 if has_role('git_master') {
96 include roles::git_master
99 if has_role('people') {
100 ssl::service { 'people.debian.org':
101 notify => Service['apache2'],
105 if has_role('security_master') {
106 include roles::security_master
107 include roles::dakmaster
110 if has_role('www_master') {
111 include roles::www_master
114 if has_role('cgi.d.o') {
115 ssl::service { 'cgi.debian.org':
116 notify => Service['apache2'],
121 if has_role('keyring') {
122 include roles::keyring
125 if has_role('wiki') {
129 if has_role('syncproxy') {
130 include roles::syncproxy
133 if has_role('static_master') {
134 include roles::static_master
137 if has_role('static_mirror') {
138 include roles::static_mirror
139 } elsif has_role('static_source') {
140 include roles::static_source
143 if has_role('weblog_provider') {
144 include roles::weblog_provider
147 if has_role('mailrelay') {
148 include roles::mailrelay
151 if has_role('pubsub') {
152 include roles::pubsub
155 if has_role('dbmaster') {
156 include roles::dbmaster
159 if has_role('dns_primary') {
160 include named::primary
163 if has_role('weblog_destination') {
164 include roles::weblog_destination
167 if has_role('vote') {
171 if has_role('security_tracker') {
172 include roles::security_tracker
175 if has_role('lists') {
179 if has_role('list_search') {
180 include roles::listsearch
183 if has_role('rtmaster') {
184 include roles::rtmaster
195 if has_role('sso_rp') {
196 include roles::sso_rp
199 if has_role('tracker') {
200 include roles::tracker
203 if has_role('buildd_master') {
204 include roles::buildd_master
207 if has_role('piuparts') {
208 include roles::piuparts
211 if has_role('contributors') {
212 include roles::contributors
219 if has_role('release') {
220 include roles::release
227 if has_role('jenkins') {
228 include roles::jenkins
231 if has_role('keystone') {
232 include roles::keystone
234 if has_role('keystone_rabbitmq') {
235 include roles::keystone::rabbitmq
238 if has_role('memcached') {
239 include roles::memcached
242 if has_role('postgres_backup_server') {
243 include postgres::backup_server
246 if has_role('packages') {
247 ssl::service { 'packages.debian.org':
248 notify => Service['apache2'],
253 if has_role('qamaster') {
254 ssl::service { 'qa.debian.org':
255 notify => Service['apache2'],
259 if has_role('packagesqamaster') {
260 ssl::service { 'packages.qa.debian.org':
261 notify => Service['apache2'],
265 if has_role('gobby_debian_org') {
266 ssl::service { 'gobby.debian.org':
267 notify => Service['apache2'],
269 tlsaport => [443, 6523],
273 if has_role('search_backend') {
274 include search_backend
276 if has_role('search_frontend') {
277 include search_frontend
280 if has_role('dgit_browse') {
283 if has_role('dgit_git') {
287 if $::hostname in [lw01, lw02, lw03, lw04] {
291 if has_role('veyepar.debian.org') {
292 ssl::service { 'veyepar.debian.org':
293 notify => Service['apache2'],
297 if has_role('httpredir') {
298 include roles::httpredir
301 if has_role('debtags') {
302 include roles::debtags
305 if has_role('planet_search') {
306 ssl::service { 'planet-search.debian.org':
307 notify => Service['apache2'],
312 if has_role('i18n.d.o') {
313 ssl::service { 'i18n.debian.org':
314 notify => Service['apache2'],
319 if has_role('l10n.d.o') {
320 ssl::service { 'l10n.debian.org':
321 notify => Service['apache2'],
326 if has_role('dedup.d.n') {
327 ssl::service { 'dedup.debian.net':
328 notify => Service['apache2'],
333 if has_role('pet.d.n') {
334 ssl::service { 'pet.debian.net':
335 notify => Service['apache2'],
338 ssl::service { 'pet-devel.debian.net':
339 notify => Service['apache2'],
344 if has_role('ports-master') {
345 include roles::ports-master