move loghost from a "role" in hieradata/common.yaml to a role that is included via...
authorPeter Palfrader <peter@palfrader.org>
Thu, 29 Aug 2019 18:32:36 +0000 (20:32 +0200)
committerPeter Palfrader <peter@palfrader.org>
Thu, 29 Aug 2019 18:32:36 +0000 (20:32 +0200)
hieradata/common.yaml
hieradata/nodes/loghost-grnet-01.debian.org.yaml [new file with mode: 0644]
hieradata/nodes/loghost-osuosl-01.debian.org.yaml [new file with mode: 0644]
hieradata/nodes/lotti.debian.org.yaml [new file with mode: 0644]
modules/roles/manifests/init.pp

index f3391ad..b25cfd6 100644 (file)
@@ -374,10 +374,6 @@ roles:
     - lw08.debian.org
   anonscm:
     - cgi-grnet-01.debian.org
-  loghost:
-    - loghost-grnet-01.debian.org
-    - loghost-osuosl-01.debian.org
-    - lotti.debian.org
 
 classes:
   - site
diff --git a/hieradata/nodes/loghost-grnet-01.debian.org.yaml b/hieradata/nodes/loghost-grnet-01.debian.org.yaml
new file mode 100644 (file)
index 0000000..6dfdd68
--- /dev/null
@@ -0,0 +1,2 @@
+classes:
+  - roles::loghost
diff --git a/hieradata/nodes/loghost-osuosl-01.debian.org.yaml b/hieradata/nodes/loghost-osuosl-01.debian.org.yaml
new file mode 100644 (file)
index 0000000..6dfdd68
--- /dev/null
@@ -0,0 +1,2 @@
+classes:
+  - roles::loghost
diff --git a/hieradata/nodes/lotti.debian.org.yaml b/hieradata/nodes/lotti.debian.org.yaml
new file mode 100644 (file)
index 0000000..6dfdd68
--- /dev/null
@@ -0,0 +1,2 @@
+classes:
+  - roles::loghost
index 13ac016..4cae49c 100644 (file)
@@ -394,8 +394,4 @@ class roles {
        if has_role('anonscm') {
                include roles::anonscm
        }
-
-       if has_role('loghost') {
-               include roles::loghost
-       }
 }