site "wiki.openstreetmap.org"
end
+mediawiki_extension "MultiMaps" do
+ site "wiki.openstreetmap.org"
+ template "mw-ext-MultiMaps.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]
--- /dev/null
+<?php
+# DO NOT EDIT - This file is being maintained by Chef
+
+require_once "$IP/extensions/MultiMaps/MultiMaps.php";
+
+# Array of String. Array containing all the mapping services that will be made available to the user.
+# First value - default service, which will be used if the service is not in the parameters
+# Values may be a valid name of class based on class BaseMapService or some string and an array if they
+# denote different tiles within a BaseMapService
+$egMultiMaps_MapServices = [
+ 'Leaflet',
+ 'transport' => [
+ 'service' => 'Leaflet',
+ 'attribution' => '© <a href="https://osm.org/copyright">OpenStreetMap contributors</a>. Tiles courtesy of <a href="https://www.thunderforest.com/" target="_blank">Andy Allan</a>',
+ 'source' => 'https://tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=<%= @thunderforest_key %>',
+ ],
+];