2 # Cookbook Name:: wiki.openstreetmap.org
5 # Copyright 2013, OpenStreetMap Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
20 #include_recipe "squid"
22 include_recipe "mediawiki"
24 passwords = data_bag_item("wiki", "passwords")
26 apache_site "default" do
30 mediawiki_site "wiki.openstreetmap.org" do
31 aliases "wiki.osm.org", "wiki.openstreetmap.com", "wiki.openstreetmap.net", "wiki.openstreetmap.ca", "wiki.openstreetmap.eu", "wiki.openstreetmap.pro", "wiki.openstreetmaps.org"
32 directory "/srv/wiki.openstreetmap.org"
37 database_username "wiki-user"
38 database_password passwords["wiki-user"]
40 logo "/osm_logo_wiki.png"
42 email_contact "webmaster@openstreetmap.org"
43 email_sender "wiki@openstreetmap.org"
44 email_sender_name "OpenStreetMap Wiki"
46 metanamespace "OpenStreetMap"
48 #site_readonly "MAINTENANCE UPDATE: WIKI READ-ONLY. ETA: Tuesday 8:00am UTC/GMT."
52 cookbook_file "/srv/wiki.openstreetmap.org/osm_logo_wiki.png" do
53 owner node[:mediawiki][:user]
54 group node[:mediawiki][:group]
58 template "/srv/wiki.openstreetmap.org/robots.txt" do
59 owner node[:mediawiki][:user]
60 group node[:mediawiki][:group]
62 source "robots.txt.erb"
65 cookbook_file "/srv/wiki.openstreetmap.org/favicon.ico" do
66 owner node[:mediawiki][:user]
67 group node[:mediawiki][:group]
71 directory "/srv/dump.wiki.openstreetmap.org" do
72 owner node[:mediawiki][:user]
73 group node[:mediawiki][:group]
77 apache_site "dump.wiki.openstreetmap.org" do
78 template "apache_wiki_dump.erb"
79 directory "/srv/dump.wiki.openstreetmap.org"
81 :aliases => "dump.wiki.osm.org"
85 template "/etc/cron.d/wiki-osm-org-dump" do
89 source "cron_wiki_dump.erb"