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('historical_mirror') {
75 include roles::historical_mirror
77 if has_role('debian_mirror') {
78 include roles::debian_mirror
80 if has_role('debug_mirror') {
81 include roles::debug_mirror
84 if has_role('ftp.d.o') {
88 if has_role('ftp.upload.d.o') {
89 include roles::ftp_upload
92 if has_role('ssh.upload.d.o') {
93 include roles::ssh_upload
96 if has_role('git_master') {
97 include roles::git_master
100 if has_role('people') {
101 ssl::service { 'people.debian.org': notify => Exec['service apache2 reload'], key => true, }
102 onion::service { 'people.debian.org': port => 80, target_address => 'people.debian.org', target_port => 80, direct => true }
105 if has_role('security_master') {
106 include roles::security_master
107 include roles::dakmaster
110 if has_role('www_master') {
111 include roles::www_master
114 if has_role('cgi.d.o') {
115 ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, }
118 if has_role('keyring') {
119 include roles::keyring
122 if has_role('wiki') {
126 if has_role('syncproxy') {
127 include roles::syncproxy
130 if has_role('static_master') {
131 include roles::static_master
134 if has_role('static_mirror') {
135 include roles::static_mirror
136 } elsif has_role('static_source') {
137 include roles::static_source
140 if has_role('weblog_provider') {
141 include roles::weblog_provider
144 if has_role('mailrelay') {
145 include roles::mailrelay
148 if has_role('pubsub') {
149 include roles::pubsub
152 if has_role('dbmaster') {
153 include roles::dbmaster
156 if has_role('dns_primary') {
157 include named::primary
160 if has_role('weblog_destination') {
161 include roles::weblog_destination
164 if has_role('vote') {
168 if has_role('security_tracker') {
169 include roles::security_tracker
172 if has_role('lists') {
176 if has_role('list_search') {
177 include roles::listsearch
180 if has_role('rtmaster') {
181 include roles::rtmaster
192 if has_role('sso_rp') {
193 include roles::sso_rp
196 if has_role('tracker') {
197 include roles::tracker
200 if has_role('buildd_master') {
201 include roles::buildd_master
204 if has_role('piuparts') {
205 include roles::piuparts
208 if has_role('contributors') {
209 include roles::contributors
220 if has_role('jenkins') {
221 include roles::jenkins
224 if has_role('keystone') {
225 include roles::keystone
227 if has_role('keystone_rabbitmq') {
228 include roles::keystone::rabbitmq
231 if has_role('memcached') {
232 include roles::memcached
235 if has_role('postgres_backup_server') {
236 include postgres::backup_server
239 if has_role('packages') {
240 ssl::service { 'packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
243 if has_role('qamaster') {
244 ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
247 if has_role('packagesqamaster') {
248 ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
251 if has_role('gobby_debian_org') {
252 ssl::service { 'gobby.debian.org': notify => Exec['service apache2 reload'], key => true, tlsaport => [443, 6523], }
255 if has_role('search_backend') {
256 include search_backend
258 if has_role('search_frontend') {
259 include search_frontend
262 if has_role('dgit_browse') {
265 if has_role('dgit_git') {
269 if $::hostname in [lw01, lw02, lw03, lw04] {
273 if has_role('veyepar.debian.org') {
274 ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, }
276 if has_role('sreview.debian.org') {
277 ssl::service { 'sreview.debian.net': notify => Exec['service apache2 reload'], key => true, }
280 if has_role('httpredir') {
281 include roles::httpredir
284 if has_role('debtags') {
285 include roles::debtags
288 if has_role('planet_search') {
289 ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
292 if has_role('i18n.d.o') {
293 ssl::service { 'i18n.debian.org': notify => Exec['service apache2 reload'], key => true, }
296 if has_role('l10n.d.o') {
297 ssl::service { 'l10n.debian.org': notify => Exec['service apache2 reload'], key => true, }
300 if has_role('dedup.d.n') {
301 ssl::service { 'dedup.debian.net': notify => Exec['service apache2 reload'], key => true, }
304 if has_role('pet.d.n') {
305 ssl::service { 'pet.debian.net': notify => Exec['service apache2 reload'], key => true, }
306 ssl::service { 'pet-devel.debian.net': notify => Exec['service apache2 reload'], key => true, }
309 if has_role('ports_master') {
310 include roles::ports_master
312 if has_role('ports_mirror') {
313 include roles::ports_mirror
316 if $::hostname in [klecker] {
317 onion::service { 'ftp.debian.org': port => 80, target_address => '130.89.148.12', target_port => 81, }
319 if has_role('onionbalance') {
320 include onion::balance
325 if has_role('cdimage-search') {
326 include roles::cdimage_search