Move veyepar and sreview into own manifests
authorPeter Palfrader <peter@palfrader.org>
Fri, 19 Jul 2019 09:55:53 +0000 (11:55 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 19 Jul 2019 09:55:53 +0000 (11:55 +0200)
modules/roles/manifests/init.pp
modules/roles/manifests/sreview.pp [new file with mode: 0644]
modules/roles/manifests/veyepar.pp [new file with mode: 0644]

index 51f9be5..8bc6aa5 100644 (file)
@@ -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 (file)
index 0000000..9a7afd0
--- /dev/null
@@ -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 (file)
index 0000000..a602475
--- /dev/null
@@ -0,0 +1,3 @@
+class roles::veyepar {
+       ssl::service { 'veyepar.debian.org': notify  => Exec['service apache2 reload'], key => true, }
+}