- if has_role('packages') {
- ssl::service { 'packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
- }
-
- if has_role('historicalpackages') {
- ssl::service { 'historical.packages.debian.org': notify => Exec['service apache2 reload'], key => true, }
- }
-
- if has_role('qamaster') {
- ssl::service { 'qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
- }
-
- if has_role('packagesqamaster') {
- ssl::service { 'packages.qa.debian.org': notify => Exec['service apache2 reload'], key => true, }
- }
-
- if has_role('gobby_debian_org') {
- ssl::service { 'gobby.debian.org':
- notify => [ Exec['service apache2 reload'], Exec['reload gobby'] ],
- key => true,
- tlsaport => [443, 6523],
- }
- file { '/etc/ssl/debian-local/other-keys/gobby.debian.org.key':
- ensure => present,
- mode => '0440',
- group => 'gobby',
- content => inline_template('<%= File.read(scope().call_function("hiera", ["paths.letsencrypt_dir"]) + "/gobby.debian.org.key") %>'),
- links => follow,
- notify => Exec['reload gobby'],
- }
- exec { 'reload gobby':
- command => 'pkill -u gobby -HUP -x infinoted',
- refreshonly => true,
- }
- }
-
- if has_role('search_backend') {
- include roles::search_backend
- }
- if has_role('search_frontend') {
- include roles::search_frontend
- }
-
- if has_role('dgit_browse') {
- include roles::dgit_browse
- }
- if has_role('dgit_git') {
- include roles::dgit_git
- }
-