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

index 4a637e1..1e02cf0 100644 (file)
@@ -131,8 +131,6 @@ roles:
     - smit.debian.org
   udd:
     - ullmann.debian.org
-  wiki:
-    - wilder.debian.org
   postgres_backup_server:
     - backuphost.debian.org
     - storace.debian.org
diff --git a/hieradata/nodes/wilder.debian.org.yaml b/hieradata/nodes/wilder.debian.org.yaml
new file mode 100644 (file)
index 0000000..06b47c5
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::wiki
index 2afec7f..0abfd9b 100644 (file)
@@ -45,10 +45,6 @@ class roles {
                include roles::security_mirror
        }
 
-       if has_role('wiki') {
-               include roles::wiki
-       }
-
        if has_role('syncproxy') {
                include roles::syncproxy
        }
index b6fb7e8..0299aef 100644 (file)
@@ -1,9 +1,10 @@
 class roles::wiki {
-       ssl::service { 'wiki.debian.org':
-               notify  => Exec['service apache2 reload'],
-               key => true,
-       }
-       rsync::site { 'wiki':
-               source => 'puppet:///modules/roles/wiki/rsyncd.conf',
-       }
+  include apache2
+  ssl::service { 'wiki.debian.org':
+    notify => Exec['service apache2 reload'],
+    key    => true,
+  }
+  rsync::site { 'wiki':
+    source => 'puppet:///modules/roles/wiki/rsyncd.conf',
+  }
 }