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'],
64 if has_role('manpages') {
65 ssl::service { 'manpages.debian.org': notify => Exec['service apache2 reload'], key => true, }
68 if has_role('security_mirror') {
69 include roles::security_mirror
71 if has_role('debug_mirror') {
72 include roles::debug_mirror
75 if has_role('ftp.d.o') {
79 if has_role('ftp.upload.d.o') {
80 include roles::ftp_upload
83 if has_role('ssh.upload.d.o') {
84 include roles::ssh_upload
87 if has_role('git_master') {
88 include roles::git_master
91 if has_role('people') {
92 ssl::service { 'people.debian.org': notify => Exec['service apache2 reload'], key => true, }
93 onion::service { 'people.debian.org': port => 80, target_address => 'people.debian.org', target_port => 80, direct => true }
96 if has_role('security_master') {
97 include roles::security_master
98 include roles::dakmaster
101 if has_role('www_master') {
102 include roles::www_master
105 if has_role('cgi.d.o') {
106 ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, }
109 if has_role('keyring') {
110 include roles::keyring
113 if has_role('wiki') {
117 if has_role('syncproxy') {
118 include roles::syncproxy
121 if has_role('static_master') {
122 include roles::static_master
125 if has_role('static_mirror') {
126 include roles::static_mirror
127 } elsif has_role('static_source') {
128 include roles::static_source
131 if has_role('weblog_provider') {
132 include roles::weblog_provider
135 if has_role('mailrelay') {
136 include roles::mailrelay
139 if has_role('pubsub') {
140 include roles::pubsub
143 if has_role('dbmaster') {
144 include roles::dbmaster
147 if has_role('dns_primary') {
148 include named::primary
151 if has_role('weblog_destination') {
152 include roles::weblog_destination
155 if has_role('vote') {
159 if has_role('security_tracker') {
160 include roles::security_tracker
163 if has_role('lists') {
167 if has_role('list_search') {
168 include roles::listsearch
171 if has_role('rtmaster') {
172 include roles::rtmaster
183 if has_role('sso_rp') {
184 include roles::sso_rp
187 if has_role('tracker') {
188 include roles::tracker
191 if has_role('buildd_master') {
192 include roles::buildd_master
195 if has_role('piuparts') {
196 include roles::piuparts
199 if has_role('contributors') {
200 include roles::contributors
207 if has_role('release') {
208 include roles::release
215 if has_role('jenkins') {
216 include roles::jenkins
219 if has_role('keystone') {
220 include roles::keystone
222 if has_role('keystone_rabbitmq') {
223 include roles::keystone::rabbitmq
226 if has_role('memcached') {
227 include roles::memcached
230 if has_role('postgres_backup_server') {
231 include postgres::backup_server
234 if has_role('packages') {
235 ssl::service { 'packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
238 if has_role('qamaster') {
239 ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
242 if has_role('packagesqamaster') {
243 ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
246 if has_role('gobby_debian_org') {
247 ssl::service { 'gobby.debian.org': notify => Exec['service apache2 reload'], key => true, tlsaport => [443, 6523], }
250 if has_role('search_backend') {
251 include search_backend
253 if has_role('search_frontend') {
254 include search_frontend
257 if has_role('dgit_browse') {
260 if has_role('dgit_git') {
264 if $::hostname in [lw01, lw02, lw03, lw04] {
268 if has_role('veyepar.debian.org') {
269 ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, }
272 if has_role('httpredir') {
273 include roles::httpredir
276 if has_role('debtags') {
277 include roles::debtags
280 if has_role('planet_search') {
281 ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
284 if has_role('i18n.d.o') {
285 ssl::service { 'i18n.debian.org': notify => Exec['service apache2 reload'], key => true, }
288 if has_role('l10n.d.o') {
289 ssl::service { 'l10n.debian.org': notify => Exec['service apache2 reload'], key => true, }
292 if has_role('dedup.d.n') {
293 ssl::service { 'dedup.debian.net': notify => Exec['service apache2 reload'], key => true, }
296 if has_role('pet.d.n') {
297 ssl::service { 'pet.debian.net': notify => Exec['service apache2 reload'], key => true, }
298 ssl::service { 'pet-devel.debian.net': notify => Exec['service apache2 reload'], key => true, }
301 if has_role('ports-master') {
302 include roles::ports-master
304 if has_role('ports_mirror') {
305 include roles::ports_mirror
308 if $::hostname in [klecker] {
309 onion::service { 'ftp.debian.org': port => 80, target_address => '130.89.148.12', target_port => 81, }
311 if has_role('onionbalance') {
312 include onion::balance