search_{frontend,backend} -> hiera role; explicitly include apache2
authorPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 13:29:07 +0000 (15:29 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 13:29:07 +0000 (15:29 +0200)
hieradata/common.yaml
hieradata/nodes/cgi-grnet-01.debian.org.yaml
hieradata/nodes/wolkenstein.debian.org.yaml
modules/roles/manifests/init.pp
modules/roles/manifests/search_frontend.pp

index 916a4b3..c811609 100644 (file)
@@ -84,10 +84,6 @@ roles:
     - quantz.debian.org
   rtmaster:
     - reger.debian.org
-  search_backend:
-    - wolkenstein.debian.org
-  search_frontend:
-    - cgi-grnet-01.debian.org
   security_master:
     - seger.debian.org
   security_mirror:
index f1704b5..2061247 100644 (file)
@@ -1,3 +1,5 @@
+---
 classes:
+  - roles::search_backend
   - roles::static_source
   - roles::weblog_destination
index 1c4dc9d..ae90e56 100644 (file)
@@ -154,13 +154,6 @@ class roles {
                }
        }
 
-       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
        }
index dc1861d..c77e901 100644 (file)
@@ -1,6 +1,8 @@
 class roles::search_frontend {
-       ssl::service { 'search.debian.org':
-               notify  => Exec['service apache2 reload'],
-               key => true,
-       }
+  include apache2
+
+  ssl::service { 'search.debian.org':
+    notify => Exec['service apache2 reload'],
+    key    => true,
+  }
 }