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 => Exec['service apache2 reload'],
27 # XXX: turn this into a real role
28 if getfromhash($site::nodeinfo, 'buildd') {
32 # XXX: turn this into a real role
33 if getfromhash($site::nodeinfo, 'porterbox') {
37 if has_role('bugs_mirror') {
38 include roles::bugs_mirror
41 if has_role('bugs_base') {
42 ssl::service { 'bugs.debian.org':
43 notify => Exec['service apache2 reload'],
47 if has_role('bugs_master') {
48 ssl::service { 'bugs-master.debian.org': notify => Exec['service apache2 reload'], key => true, }
51 if has_role('manpages-dyn') {
52 include roles::manpages_dyn
55 if has_role('archvsync_base_additional') {
56 include archvsync_base
60 if has_role('historical_mirror') {
61 include roles::historical_mirror
65 if has_role('debug_mirror') {
66 include roles::debug_mirror
69 # ftp.debian.org and its ecosystem
70 if has_role('debian_mirror') {
71 include roles::debian_mirror
73 if has_role('ftp.d.o') {
76 if has_role('ftp_master') {
77 include roles::ftp_master
78 include roles::dakmaster
80 if has_role('ftp.upload.d.o') {
81 include roles::ftp_upload
83 if has_role('ssh.upload.d.o') {
84 include roles::ssh_upload
86 if has_role('api.ftp-master') {
87 ssl::service { 'api.ftp-master.debian.org':
88 notify => Exec['service apache2 reload'],
94 if has_role('security_master') {
95 include roles::security_master
96 include roles::dakmaster
98 if has_role('security_mirror') {
99 include roles::security_mirror
102 if has_role('git_master') {
103 include roles::git_master
106 if has_role('people') {
107 ssl::service { 'people.debian.org': notify => Exec['service apache2 reload'], key => true, }
108 onion::service { 'people.debian.org': port => 80, target_address => 'people.debian.org', target_port => 80, direct => true }
111 if has_role('www_master') {
112 include roles::www_master
115 if has_role('cgi.d.o') {
116 ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, }
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
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': notify => Exec['service apache2 reload'], key => true, }
244 if has_role('qamaster') {
245 ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
248 if has_role('packagesqamaster') {
249 ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
252 if has_role('gobby_debian_org') {
253 ssl::service { 'gobby.debian.org': notify => Exec['service apache2 reload'], key => true, tlsaport => [443, 6523], }
256 if has_role('search_backend') {
257 include search_backend
259 if has_role('search_frontend') {
260 include search_frontend
263 if has_role('dgit_browse') {
266 if has_role('dgit_git') {
270 if $::hostname in [lw01, lw02, lw03, lw04] {
274 if has_role('veyepar.debian.org') {
275 ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, }
277 if has_role('sreview.debian.org') {
278 ssl::service { 'sreview.debian.net': notify => Exec['service apache2 reload'], key => true, }
281 if has_role('httpredir') {
282 include roles::httpredir
285 if has_role('debtags') {
286 include roles::debtags
289 if has_role('planet_search') {
290 ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
293 if has_role('i18n.d.o') {
294 ssl::service { 'i18n.debian.org': notify => Exec['service apache2 reload'], key => true, }
297 if has_role('l10n.d.o') {
298 ssl::service { 'l10n.debian.org': notify => Exec['service apache2 reload'], key => true, }
301 if has_role('dedup.d.n') {
302 ssl::service { 'dedup.debian.net': notify => Exec['service apache2 reload'], key => true, }
305 if has_role('pet.d.n') {
306 ssl::service { 'pet.debian.net': notify => Exec['service apache2 reload'], key => true, }
307 ssl::service { 'pet-devel.debian.net': notify => Exec['service apache2 reload'], key => true, }
310 if has_role('ports_master') {
311 include roles::ports_master
313 if has_role('ports_mirror') {
314 include roles::ports_mirror
317 if has_role('onionbalance') {
318 include onion::balance
323 if has_role('cdimage-search') {
324 include roles::cdimage_search