Turn apache2_security_mirror into a security_mirror role
authorPeter Palfrader <peter@palfrader.org>
Fri, 29 Jul 2016 22:50:21 +0000 (22:50 +0000)
committerPeter Palfrader <peter@palfrader.org>
Fri, 29 Jul 2016 22:50:21 +0000 (22:50 +0000)
hieradata/common.yaml
modules/debian-org/misc/local.yaml
modules/roles/manifests/init.pp

index 75a759a..ad6ccb1 100644 (file)
@@ -110,6 +110,18 @@ roles:
     - wolkenstein.debian.org
   search_frontend:
     - cgi-grnet-01.debian.org
+  security_mirror:
+    - mirror-anu.debian.org
+    - mirror-csail.debian.org
+    - mirror-isc.debian.org
+    - mirror-umn.debian.org
+    - lobos.debian.org
+    - santoro.debian.org
+    - setoguchi.debian.org
+    - sechter.debian.org
+    - steffani.debian.org
+    - villa.debian.org
+    - wieck.debian.org
   ssh.upload.d.o:
     - coccia.debian.org
   sso:
index 008ffd3..7795a69 100644 (file)
@@ -141,18 +141,6 @@ host_settings:
     - tye.debian.org
     - vento.debian.org
     - wuiet.debian.org
-  apache2_security_mirror:
-    - mirror-anu.debian.org
-    - mirror-csail.debian.org
-    - mirror-isc.debian.org
-    - mirror-umn.debian.org
-    - lobos.debian.org
-    - santoro.debian.org
-    - setoguchi.debian.org
-    - sechter.debian.org
-    - steffani.debian.org
-    - villa.debian.org
-    - wieck.debian.org
   not-bacula-client:
     # decommissioning
     - rautavaara.debian.org
index 2cd90de..a6d6647 100644 (file)
@@ -71,11 +71,9 @@ class roles {
                }
        }
 
-       # XXX: turn this into a real role
-       if getfromhash($site::nodeinfo, 'apache2_security_mirror') {
+       if has_role('security_mirror') {
                include roles::security_mirror
        }
-
        if has_role('mirror_debug') {
                include roles::debug_mirror
        }