]> git.openstreetmap.org Git - chef.git/commitdiff
Add private wiki for board use
authorTom Hughes <tom@compton.nu>
Sun, 14 Dec 2014 19:39:45 +0000 (19:39 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 14 Dec 2014 20:58:02 +0000 (20:58 +0000)
cookbooks/foundation/recipes/board.rb [new file with mode: 0644]
roles/foundation.rb

diff --git a/cookbooks/foundation/recipes/board.rb b/cookbooks/foundation/recipes/board.rb
new file mode 100644 (file)
index 0000000..18ef1ac
--- /dev/null
@@ -0,0 +1,34 @@
+#
+# Cookbook Name:: foundation
+# Recipe:: board
+#
+# Copyright 2014, OpenStreetMap Foundation
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+include_recipe "mediawiki"
+
+passwords = data_bag_item("foundation", "passwords")
+
+mediawiki_site  "board.osmfoundation.org" do
+  directory "/srv/board.osmfoundation.org"
+  database_name "board-wiki"
+  database_username "board-wikiuser"
+  database_password passwords["board"]["database"]
+  admin_password passwords["board"]["admin"]
+  email_contact "webmaster@openstreetmap.org"
+  email_sender "webmaster@openstreetmap.org"
+  email_sender_name "OSMF Board Wiki"
+  private true
+end
index 2add69e2e841696f7596d17a28b538291ee7acd4..0dfab7c6bd528c9a4f8f03fed5f490da93a3b94b 100644 (file)
@@ -19,5 +19,6 @@ default_attributes(
 
 run_list(
   "role[crm]",
-  "recipe[foundation::wiki]"
+  "recipe[foundation::wiki]",
+  "recipe[foundation::board]"
 )