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 => Service['apache2'],
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('bugs_mirror') {
37 include roles::bugs_mirror
40 if has_role('bugs_base') {
41 ssl::service { 'bugs.debian.org':
42 notify => Service['apache2'],
45 if has_role('bugs_master') {
46 ssl::service { 'bugs-master.debian.org':
47 notify => Service['apache2'],
51 if has_role('ftp_master') {
52 include roles::ftp_master
53 include roles::dakmaster
56 if has_role('api.ftp-master') {
57 ssl::service { 'api.ftp-master.debian.org':
58 notify => Service['apache2'],
62 # XXX: turn this into a real role
63 if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
64 include roles::security_mirror
67 # XXX: turn this into a real role
68 if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
69 include roles::www_mirror
72 if has_role('mirror_debug') {
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':
94 notify => Service['apache2'],
98 if has_role('security_master') {
99 include roles::security_master
100 include roles::dakmaster
103 if has_role('www_master') {
104 include roles::www_master
107 if has_role('keyring') {
108 include roles::keyring
111 if has_role('wiki') {
115 if has_role('syncproxy') {
116 include roles::syncproxy
119 if has_role('static_master') {
120 include roles::static_master
123 if has_role('static_mirror') {
124 include roles::static_mirror
125 } elsif has_role('static_source') {
126 include roles::static_source
129 if has_role('weblog_provider') {
130 include roles::weblog_provider
133 if has_role('mailrelay') {
134 include roles::mailrelay
137 if has_role('pubsub') {
138 include roles::pubsub
141 if has_role('dbmaster') {
142 include roles::dbmaster
145 if has_role('dns_primary') {
146 include named::primary
149 if has_role('weblog_destination') {
150 include roles::weblog_destination
153 if has_role('vote') {
157 if has_role('security_tracker') {
158 include roles::security_tracker
161 if has_role('lists') {
165 if has_role('list_search') {
166 include roles::listsearch
169 if has_role('rtmaster') {
170 include roles::rtmaster
181 if has_role('sso_rp') {
182 include roles::sso_rp
185 if has_role('tracker') {
186 include roles::tracker
189 if has_role('buildd_master') {
190 include roles::buildd_master
193 if has_role('piuparts') {
194 include roles::piuparts
197 if has_role('contributors') {
198 include roles::contributors
205 if has_role('release') {
206 include roles::release
213 if has_role('jenkins') {
214 include roles::jenkins
217 if has_role('keystone') {
218 include roles::keystone
220 if has_role('keystone_rabbitmq') {
221 include roles::keystone::rabbitmq
224 if has_role('memcached') {
225 include roles::memcached
228 if has_role('postgres_backup_server') {
229 include postgres::backup_server
232 if has_role('packages') {
233 ssl::service { 'packages.debian.org':
234 notify => Service['apache2'],
238 if has_role('qamaster') {
239 ssl::service { 'qa.debian.org':
240 notify => Service['apache2'],
244 if has_role('packagesqamaster') {
245 ssl::service { 'packages.qa.debian.org':
246 notify => Service['apache2'],
250 if has_role('gobby_debian_org') {
251 ssl::service { 'gobby.debian.org':
252 notify => Service['apache2'],
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':
276 notify => Service['apache2'],
280 if has_role('httpredir') {
281 include roles::httpredir
284 if has_role('debtags') {
285 include roles::debtags