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') {
44 if has_role('bugs_mirror') {
45 include roles::bugs_mirror
48 if has_role('bugs_base') {
49 ssl::service { 'bugs.debian.org':
50 notify => Service['apache2'],
53 if has_role('bugs_master') {
54 ssl::service { 'bugs-master.debian.org':
55 notify => Service['apache2'],
59 if has_role('ftp_master') {
60 include roles::ftp_master
61 include roles::dakmaster
64 # XXX: turn this into a real role
65 if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
66 include roles::security_mirror
69 # XXX: turn this into a real role
70 if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
71 include roles::www_mirror
74 if has_role('ftp.d.o') {
78 if has_role('ftp.upload.d.o') {
79 include roles::ftp_upload
82 if has_role('git_master') {
83 include roles::git_master
86 if has_role('people') {
87 ssl::service { 'people.debian.org':
88 notify => Service['apache2'],
92 if has_role('security_master') {
93 include roles::security_master
94 include roles::dakmaster
97 if has_role('www_master') {
98 include roles::www_master
101 if has_role('keyring') {
102 include roles::keyring
105 if has_role('wiki') {
109 if has_role('syncproxy') {
110 include roles::syncproxy
113 if has_role('static_master') {
114 include roles::static_master
117 if has_role('static_mirror') {
118 include roles::static_mirror
119 } elsif has_role('static_source') {
120 include roles::static_source
123 if has_role('weblog_provider') {
124 include roles::weblog_provider
127 if has_role('mailrelay') {
128 include roles::mailrelay
131 if has_role('pubsub') {
132 include roles::pubsub
135 if has_role('dbmaster') {
136 include roles::dbmaster
139 if has_role('dns_primary') {
140 include named::primary
143 if has_role('weblog_destination') {
144 include roles::weblog_destination
147 if has_role('vote') {
151 if has_role('security_tracker') {
152 include roles::security_tracker
155 if has_role('lists') {
159 if has_role('rtmaster') {
160 include roles::rtmaster
171 if has_role('tracker') {
172 include roles::tracker
175 if has_role('buildd_master') {
176 include roles::buildd_master
179 if has_role('buildd_ports_master') {
180 include roles::buildd_ports_master
183 if has_role('piuparts') {
184 include roles::piuparts
187 if has_role('contributors') {
188 include roles::contributors
195 if has_role('release') {
196 include roles::release
203 if has_role('keystone') {
204 include roles::keystone
207 if has_role('postgres_backup_server') {
208 include postgres::backup_server
211 if has_role('packages') {
212 ssl::service { 'packages.debian.org':
213 notify => Service['apache2'],
217 if has_role('qamaster') {
218 ssl::service { 'qa.debian.org':
219 notify => Service['apache2'],
223 if has_role('packagesqamaster') {
224 ssl::service { 'packages.qa.debian.org':
225 notify => Service['apache2'],
229 if has_role('gobby_debian_org') {
230 ssl::service { 'gobby.debian.org':