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

index 5462936..a4f01d5 100644 (file)
@@ -72,8 +72,6 @@ roles:
     - menotti.debian.org
   nagiosmaster:
     - tchaikovsky.debian.org
-  nm:
-    - nono.debian.org
   packages:
     - picconi.debian.org
     - pkgmirror-csail.debian.org
diff --git a/hieradata/nodes/nono.debian.org.yaml b/hieradata/nodes/nono.debian.org.yaml
new file mode 100644 (file)
index 0000000..6f30e7f
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::nm
index 6afdaa4..ca72b6b 100644 (file)
@@ -123,10 +123,6 @@ class roles {
                include roles::contributors
        }
 
-       if has_role('nm') {
-               include roles::nm
-       }
-
        if has_role('postgres_backup_server') {
                include postgres::backup_server
        }
index 3a8ee2f..262bb20 100644 (file)
@@ -1,6 +1,7 @@
 class roles::nm {
-       ssl::service { 'nm.debian.org':
-               notify  => Exec['service apache2 reload'],
-               key => true,
-       }
+  include apache2
+  ssl::service { 'nm.debian.org':
+    notify  => Exec['service apache2 reload'],
+    key => true,
+  }
 }