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
52 if has_role('security_master') {
53 include roles::security_master
54 include roles::dakmaster
57 if has_role('security_mirror') {
58 include roles::security_mirror
61 if has_role('git_master') {
62 include roles::git_master
65 if has_role('www_master') {
66 include roles::www_master
69 if has_role('cgi.d.o') {
70 ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, }
77 if has_role('syncproxy') {
78 include roles::syncproxy
81 if has_role('mailrelay') {
82 include roles::mailrelay
85 if has_role('pubsub') {
89 if has_role('dns_primary') {
90 include roles::dns_primary
93 if has_role('dns_geo') {
94 include roles::dns_geodns
97 if has_role('security_tracker') {
98 include roles::security_tracker
101 if has_role('rtmaster') {
102 include roles::rtmaster
113 if has_role('sso_rp') {
114 include roles::sso_rp
117 if has_role('postgres_backup_server') {
118 include postgres::backup_server
121 if has_role('packages') {
122 ssl::service { 'packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
125 if has_role('historicalpackages') {
126 ssl::service { 'historical.packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
129 if has_role('qamaster') {
130 ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
133 if has_role('packagesqamaster') {
134 ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
137 if has_role('gobby_debian_org') {
138 ssl::service { 'gobby.debian.org':
139 notify => [ Exec['service apache2 reload'], Exec['reload gobby'] ],
141 tlsaport => [443, 6523],
143 file { '/etc/ssl/debian-local/other-keys/gobby.debian.org.key':
147 content => inline_template('<%= File.read(scope().call_function("hiera", ["paths.letsencrypt_dir"]) + "/gobby.debian.org.key") %>'),
149 notify => Exec['reload gobby'],
151 exec { 'reload gobby':
152 command => 'pkill -u gobby -HUP -x infinoted',
157 if $::hostname in [lw01, lw02, lw03, lw04, lw09, lw10] {
158 include roles::snapshot
161 if has_role('snapshot_web') {
162 include roles::snapshot_web
165 if has_role('snapshot_shell') {
166 include roles::snapshot_shell
169 if has_role('planet_master') {
170 include roles::planet_master
172 if has_role('planet_search') {
173 ssl::service { 'planet-search.debian.org': notify => Exec['service apache2 reload'], key => true, }
176 if has_role('i18n.d.o') {
177 ssl::service { 'i18n.debian.org': notify => Exec['service apache2 reload'], key => true, }
180 if has_role('l10n.d.o') {
181 ssl::service { 'l10n.debian.org': notify => Exec['service apache2 reload'], key => true, }
184 if has_role('pet.d.n') {
185 ssl::service { 'pet.debian.net': notify => Exec['service apache2 reload'], key => true, }
186 ssl::service { 'pet-devel.debian.net': notify => Exec['service apache2 reload'], key => true, }
189 if has_role('ports_master') {
190 include roles::ports_master
192 if has_role('ports_mirror') {
193 include roles::ports_mirror
196 if has_role('onionbalance') {
197 include onion::balance
202 if has_role('cdimage-search') {
203 include roles::cdimage_search
206 if has_role('postgresql_server') {
207 include postgres::backup_source
210 if has_role('bacula_director') {
211 include bacula::director
213 package { 'bacula-console': ensure => purged; }
214 file { '/etc/bacula/bconsole.conf': ensure => absent; }
216 if has_role('bacula_storage') {
217 include bacula::storage
220 if $::keyring_debian_org_mirror {
221 include roles::keyring_debian_org_mirror
224 if has_role('popcon') {
225 include roles::popcon