hiera -> hiera role; explicitly include apache2
authorPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 13:02:50 +0000 (15:02 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 13:02:50 +0000 (15:02 +0200)
hieradata/common.yaml
hieradata/nodes/draghi.debian.org.yaml [new file with mode: 0644]
modules/roles/manifests/dbmaster.pp
modules/roles/manifests/init.pp

index 97997ea..902da87 100644 (file)
@@ -37,8 +37,6 @@ roles:
     - buxtehude.debian.org
   contributors:
     - nono.debian.org
-  dbmaster:
-    - draghi.debian.org
   debtags:
     - tate.debian.org
   dns_primary:
diff --git a/hieradata/nodes/draghi.debian.org.yaml b/hieradata/nodes/draghi.debian.org.yaml
new file mode 100644 (file)
index 0000000..a2da6fd
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::dbmaster
index 1bd9d2b..f7b5a26 100644 (file)
@@ -7,6 +7,7 @@
 #   include roles::dbmaster
 #
 class roles::dbmaster {
+  include apache2
 
   include roles::pubsub::parameters
 
index c8842fa..948127f 100644 (file)
@@ -91,10 +91,6 @@ class roles {
                include roles::pubsub
        }
 
-       if has_role('dbmaster') {
-               include roles::dbmaster
-       }
-
        if has_role('dns_primary') {
                include roles::dns_primary
        }