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('security_master') {
75 include roles::security_master
76 include roles::dakmaster
79 if has_role('www_master') {
80 include roles::www_master
83 if has_role('keyring') {
84 include roles::keyring
91 if has_role('syncproxy') {
92 include roles::syncproxy
95 if has_role('static_master') {
96 include roles::static_master
99 if has_role('static_mirror') {
100 include roles::static_mirror
101 } elsif has_role('static_source') {
102 include roles::static_source
105 if has_role('weblog_provider') {
106 include roles::weblog_provider
109 if has_role('mailrelay') {
110 include roles::mailrelay
113 if has_role('pubsub') {
114 include roles::pubsub
117 if has_role('dbmaster') {
118 include roles::dbmaster
121 if has_role('dns_primary') {
122 include named::primary
124 if has_role('dns_secondary') {
125 include named::authoritative
128 if has_role('weblog_destination') {
129 include roles::weblog_destination
132 if has_role('vote') {
136 if has_role('security_tracker') {
137 include roles::security_tracker
140 if has_role('lists') {
144 if has_role('rtmaster') {
145 include roles::rtmaster
156 if has_role('buildd_master') {
157 include roles::buildd_master
160 if has_role('piuparts') {
161 include roles::piuparts
164 if has_role('contributors') {
165 include roles::contributors
172 if has_role('release') {
173 include roles::release
180 if has_role('postgres_backup_server') {
181 include postgres::backup_server
184 if has_role('packages') {
185 ssl::service { 'packages.debian.org':
186 notify => Service['apache2'],