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('bugs_mirror') {
19 include roles::bugs_mirror
22 if has_role('bugs_base') {
23 ssl::service { 'bugs.debian.org':
24 notify => Exec['service apache2 reload'],
27 ferm::rule { 'dsa-bugs-abusers':
29 rule => "saddr (220.243.135/24 220.243.136/24) DROP",
32 if has_role('bugs_master') {
33 ssl::service { 'bugs-devel.debian.org': notify => Exec['service apache2 reload'], key => true, }
34 ssl::service { 'bugs-master.debian.org': notify => Exec['service apache2 reload'], key => true, }
37 if has_role('manpages-dyn') {
38 include roles::manpages_dyn
42 if has_role('historical_mirror') {
43 include roles::historical_mirror
47 if has_role('debug_mirror') {
48 include roles::debug_mirror
51 # ftp.debian.org and its ecosystem
52 if has_role('debian_mirror') {
53 include roles::debian_mirror
55 if has_role('ftp_master') {
56 include roles::ftp_master
57 include roles::dakmaster
58 include roles::signing
60 if has_role('ftp.upload.d.o') {
61 include roles::ftp_upload
63 if has_role('ssh.upload.d.o') {
64 include roles::ssh_upload
66 if has_role('security_upload') {
67 include roles::security_upload
69 if has_role('api.ftp-master') {
70 ssl::service { 'api.ftp-master.debian.org':
71 notify => Exec['service apache2 reload'],
77 if has_role('security_master') {
78 include roles::security_master
79 include roles::dakmaster
82 if has_role('security_mirror') {
83 include roles::security_mirror
86 if has_role('git_master') {
87 include roles::git_master
90 if has_role('people') {
91 ssl::service { 'people.debian.org': notify => Exec['service apache2 reload'], key => true, }
92 onion::service { 'people.debian.org': port => 80, target_address => 'people.debian.org', target_port => 80, direct => true }
95 if has_role('www_master') {
96 include roles::www_master
99 if has_role('cgi.d.o') {
100 ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, }
103 if has_role('keyring') {
104 include roles::keyring
107 if has_role('wiki') {
111 if has_role('syncproxy') {
112 include roles::syncproxy
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 roles::dns_primary
135 if has_role('dns_geo') {
136 include roles::dns_geodns
139 if has_role('weblog_destination') {
140 include roles::weblog_destination
143 if has_role('vote') {
147 if has_role('security_tracker') {
148 include roles::security_tracker
151 if has_role('lists') {
155 if has_role('rtmaster') {
156 include roles::rtmaster
167 if has_role('sso_rp') {
168 include roles::sso_rp
171 if has_role('tracker') {
172 include roles::tracker
175 if has_role('piuparts') {
176 include roles::piuparts
178 if has_role('piuparts_slave') {
179 include roles::piuparts_slave
182 if has_role('contributors') {
183 include roles::contributors
194 if has_role('postgres_backup_server') {
195 include postgres::backup_server
198 if has_role('packages') {
199 ssl::service { 'packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
202 if has_role('historicalpackages') {
203 ssl::service { 'historical.packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
206 if has_role('qamaster') {
207 ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
210 if has_role('packagesqamaster') {
211 ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
214 if has_role('gobby_debian_org') {
215 ssl::service { 'gobby.debian.org':
216 notify => [ Exec['service apache2 reload'], Exec['reload gobby'] ],
218 tlsaport => [443, 6523],
220 file { '/etc/ssl/debian-local/other-keys/gobby.debian.org.key':
224 content => inline_template('<%= File.read(scope().call_function("hiera", ["paths.letsencrypt_dir"]) + "/gobby.debian.org.key") %>'),
226 notify => Exec['reload gobby'],
228 exec { 'reload gobby':
229 command => 'pkill -u gobby -HUP -x infinoted',
234 if has_role('search_backend') {
235 include roles::search_backend
237 if has_role('search_frontend') {
238 include roles::search_frontend
241 if has_role('dgit_browse') {
242 include roles::dgit_browse
244 if has_role('dgit_git') {
245 include roles::dgit_git
248 if $::hostname in [lw01, lw02, lw03, lw04, lw09, lw10] {
249 include roles::snapshot
252 if has_role('snapshot_web') {
253 include roles::snapshot_web
256 if has_role('snapshot_shell') {
257 include roles::snapshot_shell
260 if has_role('veyepar.debian.org') {
261 include roles::veyepar
263 if has_role('sreview.debian.org') {
264 include roles::sreview
267 if has_role('debtags') {
268 include roles::debtags
271 if has_role('planet_master') {
272 include roles::planet_master
274 if has_role('planet_search') {
275 ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
278 if has_role('i18n.d.o') {
279 ssl::service { 'i18n.debian.org': notify => Exec['service apache2 reload'], key => true, }
282 if has_role('l10n.d.o') {
283 ssl::service { 'l10n.debian.org': notify => Exec['service apache2 reload'], key => true, }
286 if has_role('dedup.d.n') {
287 ssl::service { 'dedup.debian.net': notify => Exec['service apache2 reload'], key => true, }
290 if has_role('pet.d.n') {
291 ssl::service { 'pet.debian.net': notify => Exec['service apache2 reload'], key => true, }
292 ssl::service { 'pet-devel.debian.net': notify => Exec['service apache2 reload'], key => true, }
295 if has_role('ports_master') {
296 include roles::ports_master
298 if has_role('ports_mirror') {
299 include roles::ports_mirror
302 if has_role('onionbalance') {
303 include onion::balance
308 if has_role('cdimage-search') {
309 include roles::cdimage_search
312 if has_role('postgresql_server') {
313 include postgres::backup_source
316 if has_role('bacula_director') {
317 include bacula::director
319 package { 'bacula-console': ensure => purged; }
320 file { '/etc/bacula/bconsole.conf': ensure => absent; }
322 if has_role('bacula_storage') {
323 include bacula::storage
326 if has_role('salsa.debian.org') {
330 if $::keyring_debian_org_mirror {
331 include roles::keyring_debian_org_mirror
334 if has_role('popcon') {
335 include roles::popcon
338 if has_role('debsources') {
339 include roles::debsources
342 if has_role('debconf_wafer') {
343 include roles::debconf_wafer
346 if has_role('cdbuilder_local_mirror') {
347 include roles::cdbuilder_local_mirror