From: Tom Hughes Date: Sun, 14 Oct 2018 18:51:45 +0000 (+0100) Subject: Add Maps extension to the main wiki X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/5da3b1f59799cbc1283e79598a39c2715ba70fc4 Add Maps extension to the main wiki --- diff --git a/cookbooks/wiki/recipes/default.rb b/cookbooks/wiki/recipes/default.rb index e574a884f..350c5a1ba 100644 --- a/cookbooks/wiki/recipes/default.rb +++ b/cookbooks/wiki/recipes/default.rb @@ -84,6 +84,15 @@ mediawiki_extension "OsmWikibase" do reference "master" end +mediawiki_extension "Maps" do + site "wiki.openstreetmap.org" + repository "git://github.com/JeroenDeDauw/Maps.git" + tag "6.0.3" + template "mw-ext-Maps.inc.php.erb" + template_cookbook "wiki" + variables :thunderforest_key => passwords["thunderforest"] +end + cookbook_file "/srv/wiki.openstreetmap.org/osm_logo_wiki.png" do owner node[:mediawiki][:user] group node[:mediawiki][:group] diff --git a/cookbooks/wiki/templates/default/mw-ext-Maps.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Maps.inc.php.erb new file mode 100644 index 000000000..d00697f22 --- /dev/null +++ b/cookbooks/wiki/templates/default/mw-ext-Maps.inc.php.erb @@ -0,0 +1,89 @@ +';