From: Peter Palfrader Date: Sun, 15 Sep 2019 13:42:59 +0000 (+0200) Subject: Make a proper role for cgi.debian.org on wolkenstein X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=72aa72dcf9fa060434f1d22bba34258fb4c49f3a;p=mirror%2Fdsa-puppet.git Make a proper role for cgi.debian.org on wolkenstein --- diff --git a/hieradata/common.yaml b/hieradata/common.yaml index 4746258f1..7796a1bbe 100644 --- a/hieradata/common.yaml +++ b/hieradata/common.yaml @@ -157,8 +157,6 @@ roles: - wilder.debian.org www_master: - wolkenstein.debian.org - cgi.d.o: - - wolkenstein.debian.org postgres_backup_server: - backuphost.debian.org - storace.debian.org diff --git a/hieradata/nodes/wolkenstein.debian.org.yaml b/hieradata/nodes/wolkenstein.debian.org.yaml index 2061247e6..1ecdf5053 100644 --- a/hieradata/nodes/wolkenstein.debian.org.yaml +++ b/hieradata/nodes/wolkenstein.debian.org.yaml @@ -3,3 +3,4 @@ classes: - roles::search_backend - roles::static_source - roles::weblog_destination + - roles::www_cgi diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index 765e1e0f3..d298086e4 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -66,10 +66,6 @@ class roles { include roles::www_master } - if has_role('cgi.d.o') { - ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, } - } - if has_role('wiki') { include roles::wiki } diff --git a/modules/roles/manifests/www_cgi.pp b/modules/roles/manifests/www_cgi.pp new file mode 100644 index 000000000..b239275f0 --- /dev/null +++ b/modules/roles/manifests/www_cgi.pp @@ -0,0 +1,4 @@ +class roles::www_cgi { + include apache2 + ssl::service { 'cgi.debian.org': notify => Exec['service apache2 reload'], key => true, } +}