snapshot_web -> hiera role
authorPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 18:30:00 +0000 (20:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 18:30:00 +0000 (20:30 +0200)
hieradata/common.yaml
hieradata/nodes/lw07.debian.org.yaml [new file with mode: 0644]
hieradata/nodes/sallinen.debian.org.yaml [new file with mode: 0644]
modules/roles/manifests/init.pp

index c4ccc91..b24dc1b 100644 (file)
@@ -179,9 +179,6 @@ roles:
     - seger.debian.org
     - snapshotdb-manda-01.debian.org
     - vittoria.debian.org
-  snapshot_web:
-    - lw07.debian.org
-    - sallinen.debian.org
 
 classes:
   - base::includes
diff --git a/hieradata/nodes/lw07.debian.org.yaml b/hieradata/nodes/lw07.debian.org.yaml
new file mode 100644 (file)
index 0000000..1244b0c
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::snapshot_web
diff --git a/hieradata/nodes/sallinen.debian.org.yaml b/hieradata/nodes/sallinen.debian.org.yaml
new file mode 100644 (file)
index 0000000..1244b0c
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::snapshot_web
index fefab3f..583ad92 100644 (file)
@@ -78,10 +78,6 @@ class roles {
                include roles::snapshot
        }
 
-       if has_role('snapshot_web') {
-               include roles::snapshot_web
-       }
-
        if has_role('ports_master') {
                include roles::ports_master
        }