3 # Lookup role and include relevant classes for roles
10 if has_role('muninmaster') {
14 if has_role('nagiosmaster') {
15 include nagios::server
18 if has_role('manpages-dyn') {
19 include roles::manpages_dyn
23 if has_role('historical_mirror') {
24 include roles::historical_mirror
28 if has_role('debug_mirror') {
29 include roles::debug_mirror
32 # ftp.debian.org and its ecosystem
33 if has_role('debian_mirror') {
34 include roles::debian_mirror
36 if has_role('ftp_master') {
37 include roles::ftp_master
38 include roles::dakmaster
39 include roles::signing
41 if has_role('ftp.upload.d.o') {
42 include roles::ftp_upload
44 if has_role('ssh.upload.d.o') {
45 include roles::ssh_upload
47 if has_role('security_upload') {
48 include roles::security_upload
50 if has_role('api.ftp-master') {
51 ssl::service { 'api.ftp-master.debian.org':
52 notify => Exec['service apache2 reload'],
58 if has_role('security_master') {
59 include roles::security_master
60 include roles::dakmaster
63 if has_role('security_mirror') {
64 include roles::security_mirror
67 if has_role('git_master') {
68 include roles::git_master
71 if has_role('people') {
72 ssl::service { 'people.debian.org': notify => Exec['service apache2 reload'], key => true, }
73 onion::service { 'people.debian.org': port => 80, target_address => 'people.debian.org', target_port => 80, direct => true }
76 if has_role('www_master') {
77 include roles::www_master
80 if has_role('cgi.d.o') {
81 ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, }
88 if has_role('syncproxy') {
89 include roles::syncproxy
92 if has_role('mailrelay') {
93 include roles::mailrelay
96 if has_role('pubsub') {
100 if has_role('dbmaster') {
101 include roles::dbmaster
104 if has_role('dns_primary') {
105 include roles::dns_primary
108 if has_role('dns_geo') {
109 include roles::dns_geodns
112 if has_role('vote') {
116 if has_role('security_tracker') {
117 include roles::security_tracker
120 if has_role('rtmaster') {
121 include roles::rtmaster
132 if has_role('sso_rp') {
133 include roles::sso_rp
136 if has_role('tracker') {
137 include roles::tracker
140 if has_role('piuparts') {
141 include roles::piuparts
143 if has_role('piuparts_slave') {
144 include roles::piuparts_slave
147 if has_role('contributors') {
148 include roles::contributors
155 if has_role('postgres_backup_server') {
156 include postgres::backup_server
159 if has_role('packages') {
160 ssl::service { 'packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
163 if has_role('historicalpackages') {
164 ssl::service { 'historical.packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
167 if has_role('qamaster') {
168 ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
171 if has_role('packagesqamaster') {
172 ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
175 if has_role('gobby_debian_org') {
176 ssl::service { 'gobby.debian.org':
177 notify => [ Exec['service apache2 reload'], Exec['reload gobby'] ],
179 tlsaport => [443, 6523],
181 file { '/etc/ssl/debian-local/other-keys/gobby.debian.org.key':
185 content => inline_template('<%= File.read(scope().call_function("hiera", ["paths.letsencrypt_dir"]) + "/gobby.debian.org.key") %>'),
187 notify => Exec['reload gobby'],
189 exec { 'reload gobby':
190 command => 'pkill -u gobby -HUP -x infinoted',
195 if has_role('search_backend') {
196 include roles::search_backend
198 if has_role('search_frontend') {
199 include roles::search_frontend
202 if has_role('dgit_browse') {
203 include roles::dgit_browse
205 if has_role('dgit_git') {
206 include roles::dgit_git
209 if $::hostname in [lw01, lw02, lw03, lw04, lw09, lw10] {
210 include roles::snapshot
213 if has_role('snapshot_web') {
214 include roles::snapshot_web
217 if has_role('snapshot_shell') {
218 include roles::snapshot_shell
221 if has_role('debtags') {
222 include roles::debtags
225 if has_role('planet_master') {
226 include roles::planet_master
228 if has_role('planet_search') {
229 ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
232 if has_role('i18n.d.o') {
233 ssl::service { 'i18n.debian.org': notify => Exec['service apache2 reload'], key => true, }
236 if has_role('l10n.d.o') {
237 ssl::service { 'l10n.debian.org': notify => Exec['service apache2 reload'], key => true, }
240 if has_role('dedup.d.n') {
241 ssl::service { 'dedup.debian.net': notify => Exec['service apache2 reload'], key => true, }
244 if has_role('pet.d.n') {
245 ssl::service { 'pet.debian.net': notify => Exec['service apache2 reload'], key => true, }
246 ssl::service { 'pet-devel.debian.net': notify => Exec['service apache2 reload'], key => true, }
249 if has_role('ports_master') {
250 include roles::ports_master
252 if has_role('ports_mirror') {
253 include roles::ports_mirror
256 if has_role('onionbalance') {
257 include onion::balance
262 if has_role('cdimage-search') {
263 include roles::cdimage_search
266 if has_role('postgresql_server') {
267 include postgres::backup_source
270 if has_role('bacula_director') {
271 include bacula::director
273 package { 'bacula-console': ensure => purged; }
274 file { '/etc/bacula/bconsole.conf': ensure => absent; }
276 if has_role('bacula_storage') {
277 include bacula::storage
280 if $::keyring_debian_org_mirror {
281 include roles::keyring_debian_org_mirror
284 if has_role('popcon') {
285 include roles::popcon
288 if has_role('debsources') {
289 include roles::debsources
292 if has_role('debconf_wafer') {
293 include roles::debconf_wafer
296 if has_role('cdbuilder_local_mirror') {
297 include roles::cdbuilder_local_mirror