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('archive_master') {
38 include archive_master
41 if has_role('bugs_mirror') {
42 include roles::bugs_mirror
45 if has_role('bugs_base') {
46 ssl::service { 'bugs.debian.org':
47 notify => Exec['service apache2 reload'],
51 if has_role('bugs_master') {
52 ssl::service { 'bugs-master.debian.org': notify => Exec['service apache2 reload'], key => true, }
55 if has_role('ftp_master') {
56 include roles::ftp_master
57 include roles::dakmaster
60 if has_role('api.ftp-master') {
61 ssl::service { 'api.ftp-master.debian.org':
62 notify => Exec['service apache2 reload'],
67 if has_role('manpages-dyn') {
68 include roles::manpages_dyn
71 if has_role('security_mirror') {
72 include roles::security_mirror
74 if has_role('debian_mirror') {
75 include roles::debian_mirror
77 if has_role('debug_mirror') {
78 include roles::debug_mirror
81 if has_role('ftp.d.o') {
85 if has_role('ftp.upload.d.o') {
86 include roles::ftp_upload
89 if has_role('ssh.upload.d.o') {
90 include roles::ssh_upload
93 if has_role('git_master') {
94 include roles::git_master
97 if has_role('people') {
98 ssl::service { 'people.debian.org': notify => Exec['service apache2 reload'], key => true, }
99 onion::service { 'people.debian.org': port => 80, target_address => 'people.debian.org', target_port => 80, direct => true }
102 if has_role('security_master') {
103 include roles::security_master
104 include roles::dakmaster
107 if has_role('www_master') {
108 include roles::www_master
111 if has_role('cgi.d.o') {
112 ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, }
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
217 if has_role('jenkins') {
218 include roles::jenkins
221 if has_role('keystone') {
222 include roles::keystone
224 if has_role('keystone_rabbitmq') {
225 include roles::keystone::rabbitmq
228 if has_role('memcached') {
229 include roles::memcached
232 if has_role('postgres_backup_server') {
233 include postgres::backup_server
236 if has_role('packages') {
237 ssl::service { 'packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
240 if has_role('qamaster') {
241 ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
244 if has_role('packagesqamaster') {
245 ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
248 if has_role('gobby_debian_org') {
249 ssl::service { 'gobby.debian.org': notify => Exec['service apache2 reload'], key => true, tlsaport => [443, 6523], }
252 if has_role('search_backend') {
253 include search_backend
255 if has_role('search_frontend') {
256 include search_frontend
259 if has_role('dgit_browse') {
262 if has_role('dgit_git') {
266 if $::hostname in [lw01, lw02, lw03, lw04] {
270 if has_role('veyepar.debian.org') {
271 ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, }
273 if has_role('sreview.debian.org') {
274 ssl::service { 'sreview.debian.net': notify => Exec['service apache2 reload'], key => true, }
277 if has_role('httpredir') {
278 include roles::httpredir
281 if has_role('debtags') {
282 include roles::debtags
285 if has_role('planet_search') {
286 ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
289 if has_role('i18n.d.o') {
290 ssl::service { 'i18n.debian.org': notify => Exec['service apache2 reload'], key => true, }
293 if has_role('l10n.d.o') {
294 ssl::service { 'l10n.debian.org': notify => Exec['service apache2 reload'], key => true, }
297 if has_role('dedup.d.n') {
298 ssl::service { 'dedup.debian.net': notify => Exec['service apache2 reload'], key => true, }
301 if has_role('pet.d.n') {
302 ssl::service { 'pet.debian.net': notify => Exec['service apache2 reload'], key => true, }
303 ssl::service { 'pet-devel.debian.net': notify => Exec['service apache2 reload'], key => true, }
306 if has_role('ports-master') {
307 include roles::ports-master
309 if has_role('ports_mirror') {
310 include roles::ports_mirror
313 if $::hostname in [klecker] {
314 onion::service { 'ftp.debian.org': port => 80, target_address => '130.89.148.12', target_port => 81, }
316 if has_role('onionbalance') {
317 include onion::balance
322 if has_role('cdimage-search') {
323 include roles::cdimage_search