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('ftp.d.o') {
76 if has_role('ftp.upload.d.o') {
77 include roles::ftp_upload
80 if has_role('git_master') {
81 include roles::git_master
84 if has_role('people') {
85 ssl::service { 'people.debian.org':
86 notify => Service['apache2'],
90 if has_role('security_master') {
91 include roles::security_master
92 include roles::dakmaster
95 if has_role('www_master') {
96 include roles::www_master
99 if has_role('keyring') {
100 include roles::keyring
103 if has_role('wiki') {
107 if has_role('syncproxy') {
108 include roles::syncproxy
111 if has_role('static_master') {
112 include roles::static_master
115 if has_role('static_mirror') {
116 include roles::static_mirror
117 } elsif has_role('static_source') {
118 include roles::static_source
121 if has_role('weblog_provider') {
122 include roles::weblog_provider
125 if has_role('mailrelay') {
126 include roles::mailrelay
129 if has_role('pubsub') {
130 include roles::pubsub
133 if has_role('dbmaster') {
134 include roles::dbmaster
137 if has_role('dns_primary') {
138 include named::primary
141 if has_role('weblog_destination') {
142 include roles::weblog_destination
145 if has_role('vote') {
149 if has_role('security_tracker') {
150 include roles::security_tracker
153 if has_role('lists') {
157 if has_role('rtmaster') {
158 include roles::rtmaster
169 if has_role('tracker') {
170 include roles::tracker
173 if has_role('buildd_master') {
174 include roles::buildd_master
177 if has_role('buildd_ports_master') {
178 include roles::buildd_ports_master
181 if has_role('piuparts') {
182 include roles::piuparts
185 if has_role('contributors') {
186 include roles::contributors
193 if has_role('release') {
194 include roles::release
201 if has_role('keystone') {
202 include roles::keystone
205 if has_role('postgres_backup_server') {
206 include postgres::backup_server
209 if has_role('packages') {
210 ssl::service { 'packages.debian.org':
211 notify => Service['apache2'],
215 if has_role('qamaster') {
216 ssl::service { 'qa.debian.org':
217 notify => Service['apache2'],
221 if has_role('packagesqamaster') {
222 ssl::service { 'packages.qa.debian.org':
223 notify => Service['apache2'],
227 if has_role('gobby_debian_org') {
228 ssl::service { 'gobby.debian.org':