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 # XXX: turn this into a real role
68 if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
69 include roles::security_mirror
72 # XXX: turn this into a real role
73 if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
74 include roles::www_mirror
77 if has_role('mirror_debug') {
78 include roles::debug_mirror
81 if has_role('ftp.d.o') {
85 if has_role('ftp.upload.d.o') {
86 include roles::ftp_upload
89 if has_role('ssh.upload.d.o') {
90 include roles::ssh_upload
93 if has_role('git_master') {
94 include roles::git_master
97 if has_role('people') {
98 ssl::service { 'people.debian.org':
99 notify => Service['apache2'],
103 if has_role('security_master') {
104 include roles::security_master
105 include roles::dakmaster
108 if has_role('www_master') {
109 include roles::www_master
112 if has_role('cgi.d.o') {
113 ssl::service { 'cgi.debian.org':
114 notify => Service['apache2'],
119 if has_role('keyring') {
120 include roles::keyring
123 if has_role('wiki') {
127 if has_role('syncproxy') {
128 include roles::syncproxy
131 if has_role('static_master') {
132 include roles::static_master
135 if has_role('static_mirror') {
136 include roles::static_mirror
137 } elsif has_role('static_source') {
138 include roles::static_source
141 if has_role('weblog_provider') {
142 include roles::weblog_provider
145 if has_role('mailrelay') {
146 include roles::mailrelay
149 if has_role('pubsub') {
150 include roles::pubsub
153 if has_role('dbmaster') {
154 include roles::dbmaster
157 if has_role('dns_primary') {
158 include named::primary
161 if has_role('weblog_destination') {
162 include roles::weblog_destination
165 if has_role('vote') {
169 if has_role('security_tracker') {
170 include roles::security_tracker
173 if has_role('lists') {
177 if has_role('list_search') {
178 include roles::listsearch
181 if has_role('rtmaster') {
182 include roles::rtmaster
193 if has_role('sso_rp') {
194 include roles::sso_rp
197 if has_role('tracker') {
198 include roles::tracker
201 if has_role('buildd_master') {
202 include roles::buildd_master
205 if has_role('piuparts') {
206 include roles::piuparts
209 if has_role('contributors') {
210 include roles::contributors
217 if has_role('release') {
218 include roles::release
225 if has_role('jenkins') {
226 include roles::jenkins
229 if has_role('keystone') {
230 include roles::keystone
232 if has_role('keystone_rabbitmq') {
233 include roles::keystone::rabbitmq
236 if has_role('memcached') {
237 include roles::memcached
240 if has_role('postgres_backup_server') {
241 include postgres::backup_server
244 if has_role('packages') {
245 ssl::service { 'packages.debian.org':
246 notify => Service['apache2'],
251 if has_role('qamaster') {
252 ssl::service { 'qa.debian.org':
253 notify => Service['apache2'],
257 if has_role('packagesqamaster') {
258 ssl::service { 'packages.qa.debian.org':
259 notify => Service['apache2'],
263 if has_role('gobby_debian_org') {
264 ssl::service { 'gobby.debian.org':
265 notify => Service['apache2'],
269 if has_role('search_backend') {
270 include search_backend
272 if has_role('search_frontend') {
273 include search_frontend
276 if has_role('dgit_browse') {
279 if has_role('dgit_git') {
283 if $::hostname in [lw01, lw02, lw03, lw04] {
287 if has_role('veyepar.debian.org') {
288 ssl::service { 'veyepar.debian.org':
289 notify => Service['apache2'],
293 if has_role('httpredir') {
294 include roles::httpredir
297 if has_role('debtags') {
298 include roles::debtags
301 if has_role('planet_search') {
302 ssl::service { 'planet-search.debian.org':
303 notify => Service['apache2'],
308 if has_role('i18n.d.o') {
309 ssl::service { 'i18n.debian.org':
310 notify => Service['apache2'],
315 if has_role('l10n.d.o') {
316 ssl::service { 'l10n.debian.org':
317 notify => Service['apache2'],
322 if has_role('dedup.d.n') {
323 ssl::service { 'dedup.debian.net':
324 notify => Service['apache2'],
329 if has_role('pet.d.n') {
330 ssl::service { 'pet.debian.net':
331 notify => Service['apache2'],
334 ssl::service { 'pet-devel.debian.net':
335 notify => Service['apache2'],