From: Peter Palfrader Date: Thu, 26 Apr 2018 08:11:18 +0000 (+0200) Subject: put apache on sallinen X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9c2c8ca01f9ad72506e7d765129425a314ed3a88;p=mirror%2Fdsa-puppet.git put apache on sallinen --- diff --git a/hieradata/common.yaml b/hieradata/common.yaml index 7bdbd96ce..851389e79 100644 --- a/hieradata/common.yaml +++ b/hieradata/common.yaml @@ -353,3 +353,5 @@ roles: - casulana.debian.org alioth_archive: - grabbe.debian.org + snapshot_web: + - sallinen.debian.org diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index f93090660..e5c8e3ad5 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -282,6 +282,10 @@ class roles { include roles::snapshot } + if has_role('snapshot_web') { + include roles::snapshot_web + } + if has_role('veyepar.debian.org') { ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, } } diff --git a/modules/roles/manifests/snapshot_web.pp b/modules/roles/manifests/snapshot_web.pp new file mode 100644 index 000000000..fefe24b52 --- /dev/null +++ b/modules/roles/manifests/snapshot_web.pp @@ -0,0 +1,9 @@ +class roles::snapshot_web { + include apache2 + + ensure_packages ( [ + "libapache2-mod-wsgi", + ], { + ensure => 'installed', + }) +}