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'],
73 # XXX: turn this into a real role
74 if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
75 include roles::security_mirror
78 if has_role('mirror_debug') {
79 include roles::debug_mirror
82 if has_role('ftp.d.o') {
86 if has_role('ftp.upload.d.o') {
87 include roles::ftp_upload
90 if has_role('ssh.upload.d.o') {
91 include roles::ssh_upload
94 if has_role('git_master') {
95 include roles::git_master
98 if has_role('people') {
99 ssl::service { 'people.debian.org':
100 notify => Service['apache2'],
104 if has_role('security_master') {
105 include roles::security_master
106 include roles::dakmaster
109 if has_role('www_master') {
110 include roles::www_master
113 if has_role('cgi.d.o') {
114 ssl::service { 'cgi.debian.org':
115 notify => Service['apache2'],
120 if has_role('keyring') {
121 include roles::keyring
124 if has_role('wiki') {
128 if has_role('syncproxy') {
129 include roles::syncproxy
132 if has_role('static_master') {
133 include roles::static_master
136 if has_role('static_mirror') {
137 include roles::static_mirror
138 } elsif has_role('static_source') {
139 include roles::static_source
142 if has_role('weblog_provider') {
143 include roles::weblog_provider
146 if has_role('mailrelay') {
147 include roles::mailrelay
150 if has_role('pubsub') {
151 include roles::pubsub
154 if has_role('dbmaster') {
155 include roles::dbmaster
158 if has_role('dns_primary') {
159 include named::primary
162 if has_role('weblog_destination') {
163 include roles::weblog_destination
166 if has_role('vote') {
170 if has_role('security_tracker') {
171 include roles::security_tracker
174 if has_role('lists') {
178 if has_role('list_search') {
179 include roles::listsearch
182 if has_role('rtmaster') {
183 include roles::rtmaster
194 if has_role('sso_rp') {
195 include roles::sso_rp
198 if has_role('tracker') {
199 include roles::tracker
202 if has_role('buildd_master') {
203 include roles::buildd_master
206 if has_role('piuparts') {
207 include roles::piuparts
210 if has_role('contributors') {
211 include roles::contributors
218 if has_role('release') {
219 include roles::release
226 if has_role('jenkins') {
227 include roles::jenkins
230 if has_role('keystone') {
231 include roles::keystone
233 if has_role('keystone_rabbitmq') {
234 include roles::keystone::rabbitmq
237 if has_role('memcached') {
238 include roles::memcached
241 if has_role('postgres_backup_server') {
242 include postgres::backup_server
245 if has_role('packages') {
246 ssl::service { 'packages.debian.org':
247 notify => Service['apache2'],
252 if has_role('qamaster') {
253 ssl::service { 'qa.debian.org':
254 notify => Service['apache2'],
258 if has_role('packagesqamaster') {
259 ssl::service { 'packages.qa.debian.org':
260 notify => Service['apache2'],
264 if has_role('gobby_debian_org') {
265 ssl::service { 'gobby.debian.org':
266 notify => Service['apache2'],
270 if has_role('search_backend') {
271 include search_backend
273 if has_role('search_frontend') {
274 include search_frontend
277 if has_role('dgit_browse') {
280 if has_role('dgit_git') {
284 if $::hostname in [lw01, lw02, lw03, lw04] {
288 if has_role('veyepar.debian.org') {
289 ssl::service { 'veyepar.debian.org':
290 notify => Service['apache2'],
294 if has_role('httpredir') {
295 include roles::httpredir
298 if has_role('debtags') {
299 include roles::debtags
302 if has_role('planet_search') {
303 ssl::service { 'planet-search.debian.org':
304 notify => Service['apache2'],
309 if has_role('i18n.d.o') {
310 ssl::service { 'i18n.debian.org':
311 notify => Service['apache2'],
316 if has_role('l10n.d.o') {
317 ssl::service { 'l10n.debian.org':
318 notify => Service['apache2'],
323 if has_role('dedup.d.n') {
324 ssl::service { 'dedup.debian.net':
325 notify => Service['apache2'],
330 if has_role('pet.d.n') {
331 ssl::service { 'pet.debian.net':
332 notify => Service['apache2'],
335 ssl::service { 'pet-devel.debian.net':
336 notify => Service['apache2'],