From: Tigerfell Date: Sat, 17 Dec 2022 12:34:10 +0000 (+0100) Subject: replace MultiMaps extension with Kartographer extension, closes openstreetmap/operati... X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/f29a5139dd8dbf0f0d7f441d09bbb4d77052d930 replace MultiMaps extension with Kartographer extension, closes openstreetmap/operations#749 --- diff --git a/cookbooks/wiki/recipes/default.rb b/cookbooks/wiki/recipes/default.rb index 2485932b3..58836b54f 100644 --- a/cookbooks/wiki/recipes/default.rb +++ b/cookbooks/wiki/recipes/default.rb @@ -107,6 +107,19 @@ mediawiki_extension "MultiMaps" do template "mw-ext-MultiMaps.inc.php.erb" template_cookbook "wiki" variables :thunderforest_key => passwords["thunderforest"] + action :delete +end + +mediawiki_extension "JsonConfig" do + site "wiki.openstreetmap.org" + template "mw-ext-JsonConfig.inc.php.erb" + template_cookbook "wiki" +end + +mediawiki_extension "Kartographer" do + site "wiki.openstreetmap.org" + template "mw-ext-Kartographer.inc.php.erb" + template_cookbook "wiki" end cookbook_file "/srv/wiki.openstreetmap.org/osm_logo_wiki.png" do diff --git a/cookbooks/wiki/templates/default/mw-ext-JsonConfig.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-JsonConfig.inc.php.erb new file mode 100644 index 000000000..b3c666b46 --- /dev/null +++ b/cookbooks/wiki/templates/default/mw-ext-JsonConfig.inc.php.erb @@ -0,0 +1,6 @@ + [ - 'service' => 'Leaflet', - 'attribution' => '© OpenStreetMap contributors. Tiles style by CyclOSM hosted by OpenStreetMap France', - 'source' => 'https://{s}.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png', - ], - 'cycle' => [ - 'service' => 'Leaflet', - 'attribution' => '© OpenStreetMap contributors. Tiles courtesy of Andy Allan', - 'source' => 'https://tile.thunderforest.com/cycle/{z}/{x}/{y}.png?apikey=<%= @thunderforest_key %>', - ], - 'transport' => [ - 'service' => 'Leaflet', - 'attribution' => '© OpenStreetMap contributors. Tiles courtesy of Andy Allan', - 'source' => 'https://tile.thunderforest.com/transport/{z}/{x}/{y}.png?apikey=<%= @thunderforest_key %>', - ], - 'oepnv' => [ - 'service' => 'Leaflet', - 'attribution' => '© OpenStreetMap contributors. Tiles courtesy of MeMoMaps', - 'source' => 'https://tileserver.memomaps.de/tilegen/{z}/{x}/{y}.png', - ], - 'humanitarian' => [ - 'service' => 'Leaflet', - 'attribution' => '© OpenStreetMap contributors. Tiles style by Humanitarian OpenStreetMap team hosted by OpenStreetMap France', - 'source' => 'https://tile.openstreetmap.fr/hot/{z}/{x}/{y}.png' - ], -];