]> git.openstreetmap.org Git - chef.git/commitdiff
Updated wiki configuration to run under Test-Kitchen
authorMichal Migurski <migurski@fb.com>
Wed, 15 Jan 2020 01:43:57 +0000 (17:43 -0800)
committerMichal Migurski <mike@teczno.com>
Wed, 18 Mar 2020 04:07:39 +0000 (21:07 -0700)
- Added missing databags to fix transient errors
- Added wiki test suite with appropriate cookbooks

.kitchen.yml
test/data_bags/accounts/wiki.json [new file with mode: 0644]
test/data_bags/wiki/passwords.json [new file with mode: 0644]

index a9e3949c96a33584d1e67d5eeb1becbd49bce0e3..1f71e92cd36109cc78ea7783062518d3281920b3 100644 (file)
@@ -323,3 +323,10 @@ suites:
   - name: wordpress
     run_list:
       - recipe[wordpress::default]
+  - name: wiki
+    run_list:
+      - recipe[apt::default]
+      - recipe[accounts::default]
+      - recipe[munin::default]
+      - recipe[wiki]
+      - role[wiki]
diff --git a/test/data_bags/accounts/wiki.json b/test/data_bags/accounts/wiki.json
new file mode 100644 (file)
index 0000000..0ee9618
--- /dev/null
@@ -0,0 +1,7 @@
+{
+  "id": "wiki",
+  "uid": "555",
+  "comment": "wiki.openstreetmap.org",
+  "home": "/opt/wiki",
+  "manage_home": false
+}
diff --git a/test/data_bags/wiki/passwords.json b/test/data_bags/wiki/passwords.json
new file mode 100644 (file)
index 0000000..de5589f
--- /dev/null
@@ -0,0 +1,6 @@
+{
+  "database": "pw1",
+  "admin": "pw2",
+  "recaptcha": "pw3",
+  "thunderforest": "pw4"
+}