From b3c47bf4d3aa0c90ccc0e1995fd4233cdbb3eb30 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 12 Nov 2025 20:47:31 +0000 Subject: [PATCH] foundation: enable scribunto on OSMF wiki --- cookbooks/foundation/recipes/wiki.rb | 8 +++++++ .../default/mw-ext-Scribunto.inc.php.erb | 21 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 cookbooks/foundation/templates/default/mw-ext-Scribunto.inc.php.erb diff --git a/cookbooks/foundation/recipes/wiki.rb b/cookbooks/foundation/recipes/wiki.rb index 995c9ef18..c0f08659e 100644 --- a/cookbooks/foundation/recipes/wiki.rb +++ b/cookbooks/foundation/recipes/wiki.rb @@ -21,6 +21,8 @@ include_recipe "mediawiki" passwords = data_bag_item("foundation", "passwords") +package "lua5.1" # newer versions do not work with Scribuntu! + mediawiki_site "osmfoundation.org" do aliases ["wiki.osmfoundation.org", "www.osmfoundation.org", "foundation.openstreetmap.org", "foundation.osm.org"] @@ -51,6 +53,12 @@ mediawiki_skin "OSMFoundation" do legacy false end +mediawiki_extension "Scribunto" do + site "osmfoundation.org" + template "mw-ext-Scribunto.inc.php.erb" + template_cookbook "wiki" +end + cookbook_file "/srv/osmfoundation.org/Wiki.png" do owner node[:mediawiki][:user] group node[:mediawiki][:group] diff --git a/cookbooks/foundation/templates/default/mw-ext-Scribunto.inc.php.erb b/cookbooks/foundation/templates/default/mw-ext-Scribunto.inc.php.erb new file mode 100644 index 000000000..589817a08 --- /dev/null +++ b/cookbooks/foundation/templates/default/mw-ext-Scribunto.inc.php.erb @@ -0,0 +1,21 @@ +