property :site, :kind_of => String, :required => true
property :source, :kind_of => String
property :template, :kind_of => String
+property :template_cookbook, :kind_of => String, :default => "mediawiki"
property :variables, :kind_of => Hash, :default => {}
property :version, :kind_of => String
property :repository, :kind_of => String
if new_resource.template # ~FC023
declare_resource :template, "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.extension}.inc.php" do
- cookbook "mediawiki"
+ cookbook new_resource.template_cookbook
source new_resource.template
user node[:mediawiki][:user]
group node[:mediawiki][:group]
template "mw-ext-MobileFrontend.inc.php.erb"
end
+mediawiki_extension "CodeEditor" do
+ site "wiki.openstreetmap.org"
+end
+
mediawiki_extension "Scribunto" do
site "wiki.openstreetmap.org"
+ template "mw-ext-Scribunto.inc.php.erb"
+ template_cookbook "wiki"
end
cookbook_file "/srv/wiki.openstreetmap.org/osm_logo_wiki.png" do
--- /dev/null
+<?php
+# DO NOT EDIT - This file is being maintained by Chef
+
+wfLoadExtension('Scribunto');
+
+// Enable syntax highlighting
+$wgScribuntoUseGeSHi = true;
+
+// Use code editor
+$wgScribuntoUseCodeEditor = true;