From f941acf9c73167a6ac67fcacb1984d20c6f9930f Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 19 Jul 2019 11:55:53 +0200 Subject: [PATCH] Move veyepar and sreview into own manifests --- modules/roles/manifests/init.pp | 4 ++-- modules/roles/manifests/sreview.pp | 3 +++ modules/roles/manifests/veyepar.pp | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 modules/roles/manifests/sreview.pp create mode 100644 modules/roles/manifests/veyepar.pp diff --git a/modules/roles/manifests/init.pp b/modules/roles/manifests/init.pp index 51f9be53d..8bc6aa5b9 100644 --- a/modules/roles/manifests/init.pp +++ b/modules/roles/manifests/init.pp @@ -295,10 +295,10 @@ class roles { } if has_role('veyepar.debian.org') { - ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, } + include roles::veyepar } if has_role('sreview.debian.org') { - ssl::service { 'sreview.debian.net': notify => Exec['service apache2 reload'], key => true, } + include roles::sreview } if has_role('debtags') { diff --git a/modules/roles/manifests/sreview.pp b/modules/roles/manifests/sreview.pp new file mode 100644 index 000000000..9a7afd0c6 --- /dev/null +++ b/modules/roles/manifests/sreview.pp @@ -0,0 +1,3 @@ +class roles::sreview { + ssl::service { 'sreview.debian.org': notify => Exec['service apache2 reload'], key => true, } +} diff --git a/modules/roles/manifests/veyepar.pp b/modules/roles/manifests/veyepar.pp new file mode 100644 index 000000000..a60247551 --- /dev/null +++ b/modules/roles/manifests/veyepar.pp @@ -0,0 +1,3 @@ +class roles::veyepar { + ssl::service { 'veyepar.debian.org': notify => Exec['service apache2 reload'], key => true, } +} -- 2.20.1