From: Tom Hughes Date: Sun, 14 Dec 2014 19:39:45 +0000 (+0000) Subject: Add private wiki for board use X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/922d5cfa013ae19c8424dc940330659bf6665fd3?ds=sidebyside Add private wiki for board use --- diff --git a/cookbooks/foundation/recipes/board.rb b/cookbooks/foundation/recipes/board.rb new file mode 100644 index 000000000..18ef1acd4 --- /dev/null +++ b/cookbooks/foundation/recipes/board.rb @@ -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 diff --git a/roles/foundation.rb b/roles/foundation.rb index 2add69e2e..0dfab7c6b 100644 --- a/roles/foundation.rb +++ b/roles/foundation.rb @@ -19,5 +19,6 @@ default_attributes( run_list( "role[crm]", - "recipe[foundation::wiki]" + "recipe[foundation::wiki]", + "recipe[foundation::board]" )