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'],
109 if has_role('security_master') {
110 include roles::security_master
111 include roles::dakmaster
114 if has_role('www_master') {
115 include roles::www_master
118 if has_role('cgi.d.o') {
119 ssl::service { 'cgi.debian.org':
120 notify => Service['apache2'],
125 if has_role('keyring') {
126 include roles::keyring
129 if has_role('wiki') {
133 if has_role('syncproxy') {
134 include roles::syncproxy
137 if has_role('static_master') {
138 include roles::static_master
141 if has_role('static_mirror') {
142 include roles::static_mirror
143 } elsif has_role('static_source') {
144 include roles::static_source
147 if has_role('weblog_provider') {
148 include roles::weblog_provider
151 if has_role('mailrelay') {
152 include roles::mailrelay
155 if has_role('pubsub') {
156 include roles::pubsub
159 if has_role('dbmaster') {
160 include roles::dbmaster
163 if has_role('dns_primary') {
164 include named::primary
167 if has_role('weblog_destination') {
168 include roles::weblog_destination
171 if has_role('vote') {
175 if has_role('security_tracker') {
176 include roles::security_tracker
179 if has_role('lists') {
183 if has_role('list_search') {
184 include roles::listsearch
187 if has_role('rtmaster') {
188 include roles::rtmaster
199 if has_role('sso_rp') {
200 include roles::sso_rp
203 if has_role('tracker') {
204 include roles::tracker
207 if has_role('buildd_master') {
208 include roles::buildd_master
211 if has_role('piuparts') {
212 include roles::piuparts
215 if has_role('contributors') {
216 include roles::contributors
223 if has_role('release') {
224 include roles::release
231 if has_role('jenkins') {
232 include roles::jenkins
235 if has_role('keystone') {
236 include roles::keystone
238 if has_role('keystone_rabbitmq') {
239 include roles::keystone::rabbitmq
242 if has_role('memcached') {
243 include roles::memcached
246 if has_role('postgres_backup_server') {
247 include postgres::backup_server
250 if has_role('packages') {
251 ssl::service { 'packages.debian.org':
252 notify => Service['apache2'],
257 if has_role('qamaster') {
258 ssl::service { 'qa.debian.org':
259 notify => Service['apache2'],
264 if has_role('packagesqamaster') {
265 ssl::service { 'packages.qa.debian.org':
266 notify => Service['apache2'],
271 if has_role('gobby_debian_org') {
272 ssl::service { 'gobby.debian.org':
273 notify => Service['apache2'],
275 tlsaport => [443, 6523],
279 if has_role('search_backend') {
280 include search_backend
282 if has_role('search_frontend') {
283 include search_frontend
286 if has_role('dgit_browse') {
289 if has_role('dgit_git') {
293 if $::hostname in [lw01, lw02, lw03, lw04] {
297 if has_role('veyepar.debian.org') {
298 ssl::service { 'veyepar.debian.org':
299 notify => Service['apache2'],
304 if has_role('httpredir') {
305 include roles::httpredir
308 if has_role('debtags') {
309 include roles::debtags
312 if has_role('planet_search') {
313 ssl::service { 'planet-search.debian.org':
314 notify => Service['apache2'],
319 if has_role('i18n.d.o') {
320 ssl::service { 'i18n.debian.org':
321 notify => Service['apache2'],
326 if has_role('l10n.d.o') {
327 ssl::service { 'l10n.debian.org':
328 notify => Service['apache2'],
333 if has_role('dedup.d.n') {
334 ssl::service { 'dedup.debian.net':
335 notify => Service['apache2'],
340 if has_role('pet.d.n') {
341 ssl::service { 'pet.debian.net':
342 notify => Service['apache2'],
345 ssl::service { 'pet-devel.debian.net':
346 notify => Service['apache2'],
351 if has_role('ports-master') {
352 include roles::ports-master