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('bugs_mirror') {
37 include roles::bugs_mirror
40 if has_role('bugs_base') {
41 ssl::service { 'bugs.debian.org':
42 notify => Service['apache2'],
45 if has_role('bugs_master') {
46 ssl::service { 'bugs-master.debian.org':
47 notify => Service['apache2'],
52 if has_role('ftp_master') {
53 include roles::ftp_master
54 include roles::dakmaster
57 if has_role('api.ftp-master') {
58 ssl::service { 'api.ftp-master.debian.org':
59 notify => Service['apache2'],
63 # XXX: turn this into a real role
64 if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
65 include roles::security_mirror
68 # XXX: turn this into a real role
69 if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
70 include roles::www_mirror
73 if has_role('mirror_debug') {
74 include roles::debug_mirror
77 if has_role('ftp.d.o') {
81 if has_role('ftp.upload.d.o') {
82 include roles::ftp_upload
85 if has_role('ssh.upload.d.o') {
86 include roles::ssh_upload
89 if has_role('git_master') {
90 include roles::git_master
93 if has_role('people') {
94 ssl::service { 'people.debian.org':
95 notify => Service['apache2'],
99 if has_role('security_master') {
100 include roles::security_master
101 include roles::dakmaster
104 if has_role('www_master') {
105 include roles::www_master
108 if has_role('cgi.d.o') {
109 ssl::service { 'cgi.debian.org':
110 notify => Service['apache2'],
115 if has_role('keyring') {
116 include roles::keyring
119 if has_role('wiki') {
123 if has_role('syncproxy') {
124 include roles::syncproxy
127 if has_role('static_master') {
128 include roles::static_master
131 if has_role('static_mirror') {
132 include roles::static_mirror
133 } elsif has_role('static_source') {
134 include roles::static_source
137 if has_role('weblog_provider') {
138 include roles::weblog_provider
141 if has_role('mailrelay') {
142 include roles::mailrelay
145 if has_role('pubsub') {
146 include roles::pubsub
149 if has_role('dbmaster') {
150 include roles::dbmaster
153 if has_role('dns_primary') {
154 include named::primary
157 if has_role('weblog_destination') {
158 include roles::weblog_destination
161 if has_role('vote') {
165 if has_role('security_tracker') {
166 include roles::security_tracker
169 if has_role('lists') {
173 if has_role('list_search') {
174 include roles::listsearch
177 if has_role('rtmaster') {
178 include roles::rtmaster
189 if has_role('sso_rp') {
190 include roles::sso_rp
193 if has_role('tracker') {
194 include roles::tracker
197 if has_role('buildd_master') {
198 include roles::buildd_master
201 if has_role('piuparts') {
202 include roles::piuparts
205 if has_role('contributors') {
206 include roles::contributors
213 if has_role('release') {
214 include roles::release
221 if has_role('jenkins') {
222 include roles::jenkins
225 if has_role('keystone') {
226 include roles::keystone
228 if has_role('keystone_rabbitmq') {
229 include roles::keystone::rabbitmq
232 if has_role('memcached') {
233 include roles::memcached
236 if has_role('postgres_backup_server') {
237 include postgres::backup_server
240 if has_role('packages') {
241 ssl::service { 'packages.debian.org':
242 notify => Service['apache2'],
246 if has_role('qamaster') {
247 ssl::service { 'qa.debian.org':
248 notify => Service['apache2'],
252 if has_role('packagesqamaster') {
253 ssl::service { 'packages.qa.debian.org':
254 notify => Service['apache2'],
258 if has_role('gobby_debian_org') {
259 ssl::service { 'gobby.debian.org':
260 notify => Service['apache2'],
264 if has_role('search_backend') {
265 include search_backend
267 if has_role('search_frontend') {
268 include search_frontend
271 if has_role('dgit_browse') {
274 if has_role('dgit_git') {
278 if $::hostname in [lw01, lw02, lw03, lw04] {
282 if has_role('veyepar.debian.org') {
283 ssl::service { 'veyepar.debian.org':
284 notify => Service['apache2'],
288 if has_role('httpredir') {
289 include roles::httpredir
292 if has_role('debtags') {
293 include roles::debtags
296 if has_role('planet_search') {
297 ssl::service { 'planet-search.debian.org':
298 notify => Service['apache2'],
303 if has_role('i18n.d.o') {
304 ssl::service { 'i18n.debian.org':
305 notify => Service['apache2'],
310 if has_role('l10n.d.o') {
311 ssl::service { 'l10n.debian.org':
312 notify => Service['apache2'],
317 if has_role('dedup.d.n') {
318 ssl::service { 'dedup.debian.net':
319 notify => Service['apache2'],
324 if has_role('pet.d.n') {
325 ssl::service { 'pet.debian.net':
326 notify => Service['apache2'],
329 ssl::service { 'pet-devel.debian.net':
330 notify => Service['apache2'],