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 # XXX: turn this into a real role
57 if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
58 include roles::security_mirror
61 # XXX: turn this into a real role
62 if getfromhash($site::nodeinfo, 'apache2_www_mirror') {
63 include roles::www_mirror
66 if has_role('ftp.d.o') {
70 if has_role('ftp.upload.d.o') {
71 include roles::ftp_upload
74 if has_role('git_master') {
75 include roles::git_master
78 if has_role('people') {
79 ssl::service { 'people.debian.org':
80 notify => Service['apache2'],
84 if has_role('security_master') {
85 include roles::security_master
86 include roles::dakmaster
89 if has_role('www_master') {
90 include roles::www_master
93 if has_role('keyring') {
94 include roles::keyring
101 if has_role('syncproxy') {
102 include roles::syncproxy
105 if has_role('static_master') {
106 include roles::static_master
109 if has_role('static_mirror') {
110 include roles::static_mirror
111 } elsif has_role('static_source') {
112 include roles::static_source
115 if has_role('weblog_provider') {
116 include roles::weblog_provider
119 if has_role('mailrelay') {
120 include roles::mailrelay
123 if has_role('pubsub') {
124 include roles::pubsub
127 if has_role('dbmaster') {
128 include roles::dbmaster
131 if has_role('dns_primary') {
132 include named::primary
135 if has_role('weblog_destination') {
136 include roles::weblog_destination
139 if has_role('vote') {
143 if has_role('security_tracker') {
144 include roles::security_tracker
147 if has_role('lists') {
151 if has_role('rtmaster') {
152 include roles::rtmaster
163 if has_role('tracker') {
164 include roles::tracker
167 if has_role('buildd_master') {
168 include roles::buildd_master
171 if has_role('piuparts') {
172 include roles::piuparts
175 if has_role('contributors') {
176 include roles::contributors
183 if has_role('release') {
184 include roles::release
191 if has_role('keystone') {
192 include roles::keystone
195 if has_role('postgres_backup_server') {
196 include postgres::backup_server
199 if has_role('packages') {
200 ssl::service { 'packages.debian.org':
201 notify => Service['apache2'],
205 if has_role('qamaster') {
206 ssl::service { 'qa.debian.org':
207 notify => Service['apache2'],
211 if has_role('packagesqamaster') {
212 ssl::service { 'packages.qa.debian.org':
213 notify => Service['apache2'],
217 if has_role('gobby_debian_org') {
218 ssl::service { 'gobby.debian.org':