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'],
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 => Exec['service apache2 reload'],
49 if has_role('bugs_master') {
50 ssl::service { 'bugs-master.debian.org': notify => Exec['service apache2 reload'], key => true, }
53 if has_role('ftp_master') {
54 include roles::ftp_master
55 include roles::dakmaster
58 if has_role('api.ftp-master') {
59 ssl::service { 'api.ftp-master.debian.org':
60 notify => Exec['service apache2 reload'],
65 if has_role('manpages') {
66 ssl::service { 'manpages.debian.org': notify => Exec['service apache2 reload'], key => true, }
69 if has_role('security_mirror') {
70 include roles::security_mirror
72 if has_role('debug_mirror') {
73 include roles::debug_mirror
76 if has_role('ftp.d.o') {
80 if has_role('ftp.upload.d.o') {
81 include roles::ftp_upload
84 if has_role('ssh.upload.d.o') {
85 include roles::ssh_upload
88 if has_role('git_master') {
89 include roles::git_master
92 if has_role('people') {
93 ssl::service { 'people.debian.org': notify => Exec['service apache2 reload'], key => true, }
94 onion::service { 'people.debian.org': port => 80, target_address => 'people.debian.org', target_port => 80, direct => true }
97 if has_role('security_master') {
98 include roles::security_master
99 include roles::dakmaster
102 if has_role('www_master') {
103 include roles::www_master
106 if has_role('cgi.d.o') {
107 ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, }
110 if has_role('keyring') {
111 include roles::keyring
114 if has_role('wiki') {
118 if has_role('syncproxy') {
119 include roles::syncproxy
122 if has_role('static_master') {
123 include roles::static_master
126 if has_role('static_mirror') {
127 include roles::static_mirror
128 } elsif has_role('static_source') {
129 include roles::static_source
132 if has_role('weblog_provider') {
133 include roles::weblog_provider
136 if has_role('mailrelay') {
137 include roles::mailrelay
140 if has_role('pubsub') {
141 include roles::pubsub
144 if has_role('dbmaster') {
145 include roles::dbmaster
148 if has_role('dns_primary') {
149 include named::primary
152 if has_role('weblog_destination') {
153 include roles::weblog_destination
156 if has_role('vote') {
160 if has_role('security_tracker') {
161 include roles::security_tracker
164 if has_role('lists') {
168 if has_role('list_search') {
169 include roles::listsearch
172 if has_role('rtmaster') {
173 include roles::rtmaster
184 if has_role('sso_rp') {
185 include roles::sso_rp
188 if has_role('tracker') {
189 include roles::tracker
192 if has_role('buildd_master') {
193 include roles::buildd_master
196 if has_role('piuparts') {
197 include roles::piuparts
200 if has_role('contributors') {
201 include roles::contributors
208 if has_role('release') {
209 include roles::release
216 if has_role('jenkins') {
217 include roles::jenkins
220 if has_role('keystone') {
221 include roles::keystone
223 if has_role('keystone_rabbitmq') {
224 include roles::keystone::rabbitmq
227 if has_role('memcached') {
228 include roles::memcached
231 if has_role('postgres_backup_server') {
232 include postgres::backup_server
235 if has_role('packages') {
236 ssl::service { 'packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
239 if has_role('qamaster') {
240 ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
243 if has_role('packagesqamaster') {
244 ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
247 if has_role('gobby_debian_org') {
248 ssl::service { 'gobby.debian.org': notify => Exec['service apache2 reload'], key => true, tlsaport => [443, 6523], }
251 if has_role('search_backend') {
252 include search_backend
254 if has_role('search_frontend') {
255 include search_frontend
258 if has_role('dgit_browse') {
261 if has_role('dgit_git') {
265 if $::hostname in [lw01, lw02, lw03, lw04] {
269 if has_role('veyepar.debian.org') {
270 ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, }
273 if has_role('httpredir') {
274 include roles::httpredir
277 if has_role('debtags') {
278 include roles::debtags
281 if has_role('planet_search') {
282 ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
285 if has_role('i18n.d.o') {
286 ssl::service { 'i18n.debian.org': notify => Exec['service apache2 reload'], key => true, }
289 if has_role('l10n.d.o') {
290 ssl::service { 'l10n.debian.org': notify => Exec['service apache2 reload'], key => true, }
293 if has_role('dedup.d.n') {
294 ssl::service { 'dedup.debian.net': notify => Exec['service apache2 reload'], key => true, }
297 if has_role('pet.d.n') {
298 ssl::service { 'pet.debian.net': notify => Exec['service apache2 reload'], key => true, }
299 ssl::service { 'pet-devel.debian.net': notify => Exec['service apache2 reload'], key => true, }
302 if has_role('ports-master') {
303 include roles::ports-master
305 if has_role('ports_mirror') {
306 include roles::ports_mirror
309 if $::hostname in [klecker] {
310 onion::service { 'ftp.debian.org': port => 80, target_address => '130.89.148.12', target_port => 81, }
312 if has_role('onionbalance') {
313 include onion::balance