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
82 if has_role('mirror_ports') {
83 include roles::ports_mirror
86 if has_role('ftp.d.o') {
90 if has_role('ftp.upload.d.o') {
91 include roles::ftp_upload
94 if has_role('ssh.upload.d.o') {
95 include roles::ssh_upload
98 if has_role('git_master') {
99 include roles::git_master
102 if has_role('people') {
103 ssl::service { 'people.debian.org':
104 notify => Service['apache2'],
108 if has_role('security_master') {
109 include roles::security_master
110 include roles::dakmaster
113 if has_role('www_master') {
114 include roles::www_master
117 if has_role('cgi.d.o') {
118 ssl::service { 'cgi.debian.org':
119 notify => Service['apache2'],
124 if has_role('keyring') {
125 include roles::keyring
128 if has_role('wiki') {
132 if has_role('syncproxy') {
133 include roles::syncproxy
136 if has_role('static_master') {
137 include roles::static_master
140 if has_role('static_mirror') {
141 include roles::static_mirror
142 } elsif has_role('static_source') {
143 include roles::static_source
146 if has_role('weblog_provider') {
147 include roles::weblog_provider
150 if has_role('mailrelay') {
151 include roles::mailrelay
154 if has_role('pubsub') {
155 include roles::pubsub
158 if has_role('dbmaster') {
159 include roles::dbmaster
162 if has_role('dns_primary') {
163 include named::primary
166 if has_role('weblog_destination') {
167 include roles::weblog_destination
170 if has_role('vote') {
174 if has_role('security_tracker') {
175 include roles::security_tracker
178 if has_role('lists') {
182 if has_role('list_search') {
183 include roles::listsearch
186 if has_role('rtmaster') {
187 include roles::rtmaster
198 if has_role('sso_rp') {
199 include roles::sso_rp
202 if has_role('tracker') {
203 include roles::tracker
206 if has_role('buildd_master') {
207 include roles::buildd_master
210 if has_role('piuparts') {
211 include roles::piuparts
214 if has_role('contributors') {
215 include roles::contributors
222 if has_role('release') {
223 include roles::release
230 if has_role('jenkins') {
231 include roles::jenkins
234 if has_role('keystone') {
235 include roles::keystone
237 if has_role('keystone_rabbitmq') {
238 include roles::keystone::rabbitmq
241 if has_role('memcached') {
242 include roles::memcached
245 if has_role('postgres_backup_server') {
246 include postgres::backup_server
249 if has_role('packages') {
250 ssl::service { 'packages.debian.org':
251 notify => Service['apache2'],
256 if has_role('qamaster') {
257 ssl::service { 'qa.debian.org':
258 notify => Service['apache2'],
262 if has_role('packagesqamaster') {
263 ssl::service { 'packages.qa.debian.org':
264 notify => Service['apache2'],
268 if has_role('gobby_debian_org') {
269 ssl::service { 'gobby.debian.org':
270 notify => Service['apache2'],
272 tlsaport => [443, 6523],
276 if has_role('search_backend') {
277 include search_backend
279 if has_role('search_frontend') {
280 include search_frontend
283 if has_role('dgit_browse') {
286 if has_role('dgit_git') {
290 if $::hostname in [lw01, lw02, lw03, lw04] {
294 if has_role('veyepar.debian.org') {
295 ssl::service { 'veyepar.debian.org':
296 notify => Service['apache2'],
300 if has_role('httpredir') {
301 include roles::httpredir
304 if has_role('debtags') {
305 include roles::debtags
308 if has_role('planet_search') {
309 ssl::service { 'planet-search.debian.org':
310 notify => Service['apache2'],
315 if has_role('i18n.d.o') {
316 ssl::service { 'i18n.debian.org':
317 notify => Service['apache2'],
322 if has_role('l10n.d.o') {
323 ssl::service { 'l10n.debian.org':
324 notify => Service['apache2'],
329 if has_role('dedup.d.n') {
330 ssl::service { 'dedup.debian.net':
331 notify => Service['apache2'],
336 if has_role('pet.d.n') {
337 ssl::service { 'pet.debian.net':
338 notify => Service['apache2'],
341 ssl::service { 'pet-devel.debian.net':
342 notify => Service['apache2'],
347 if has_role('ports-master') {
348 include roles::ports-master