file "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.name}.inc.php" do
action :create
- content "<?php require_once('#{extension_script}');\n"
+ content "<?php wfLoadExtension( '#{new_resource.name}' );\n"
user node[:mediawiki][:user]
group node[:mediawiki][:group]
mode 0664
mediawiki_reference = "REL#{new_resource.version}".tr(".", "_")
+ git "#{mediawiki_directory}/vendor" do
+ action :nothing
+ repository "https://gerrit.wikimedia.org/r/p/mediawiki/vendor.git"
+ revision mediawiki_reference
+ user node[:mediawiki][:user]
+ group node[:mediawiki][:group]
+ end
+
git mediawiki_directory do
action :sync
repository "https://gerrit.wikimedia.org/r/p/mediawiki/core.git"
revision mediawiki_reference
user node[:mediawiki][:user]
group node[:mediawiki][:group]
+ notifies :sync, "git[#{mediawiki_directory}/vendor]", :immediately
notifies :run, "execute[#{mediawiki_directory}/maintenance/install.php]", :immediately
notifies :run, "execute[#{mediawiki_directory}/maintenance/update.php]"
end
mediawiki_extension "Cite" do
site new_resource.name
- template "mw-ext-Cite.inc.php.erb"
+ update_site false
+ end
+
+ mediawiki_extension "CiteThisPage" do
+ site new_resource.name
update_site false
end
mediawiki_extension "SimpleAntiSpam" do
site new_resource.name
update_site false
+ action :delete
end
mediawiki_extension "SpamBlacklist" do
# MediaWiki Language Extension Bundle
# FIXME: should automatically resolve tag
- mw_lang_ext_bundle_tag = "2015.08"
+ mw_lang_ext_bundle_tag = "2015.10"
mediawiki_extension "Babel" do
site new_resource.name
mediawiki_extension "Mantle" do
site new_resource.name
update_site false
+ action :delete
end
mediawiki_extension "MobileFrontend" do
attribute :name, :kind_of => String, :name_attribute => true
attribute :aliases, :kind_of => [String, Array]
attribute :directory, :kind_of => String
-attribute :version, :kind_of => String, :default => "1.24"
+attribute :version, :kind_of => String, :default => "1.26"
attribute :database_name, :kind_of => String, :required => true
attribute :database_user, :kind_of => String, :required => true
attribute :database_password, :kind_of => String, :required => true
$wgSitename = '<%= @mediawiki[:sitename] %>';
$wgMetaNamespace = '<%= @mediawiki[:metanamespace] %>';
-
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once($IP .'/extensions/AbuseFilter/AbuseFilter.php');
+wfLoadExtension( 'AbuseFilter' );
$wgGroupPermissions['sysop']['abusefilter-modify'] = true;
$wgGroupPermissions['*']['abusefilter-log-detail'] = true;
$wgGroupPermissions['*']['abusefilter-view'] = true;
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/Babel/Babel.php' );
+wfLoadExtension( 'Babel' );
$wgBabelMainCategory = 'User %code%';
$wgBabelCategoryNames = array(
'0' => false,
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once($IP .'/extensions/CheckUser/CheckUser.php');
+wfLoadExtension( 'CheckUser' );
#Only allow bureaucrat group to checkuser
$wgGroupPermissions['bureaucrat']['checkuser'] = true;
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/CirrusSearch/CirrusSearch.php' );
+wfLoadExtension( 'CirrusSearch' );
$wgDisableSearchUpdate = false;
$wgSearchType = 'CirrusSearch';
+++ /dev/null
-<?php
-# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/Cite/Cite.php' );
-require_once( $IP.'/extensions/Cite/SpecialCite.php' );
<?php
# DO NOT EDIT - This file is being maintained by Chef
$wgDefaultUserOptions['usenewrc'] = 1;
-require_once( $IP.'/extensions/CleanChanges/CleanChanges.php' );
+wfLoadExtension( 'CleanChanges' );
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/ConfirmEdit/ReCaptcha.php' );
+wfLoadExtensions( array( 'ConfirmEdit', 'ConfirmEdit/ReCaptcha' ) );
$wgCaptchaClass = 'ReCaptcha';
$recaptcha_public_key = '<%= @public_key %>';
$recaptcha_private_key = '<%= @private_key %>';
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/DisableAccount/DisableAccount.php' );
+wfLoadExtension( 'DisableAccount' );
// Allow bureaucrats to disable users
$wgGroupPermissions['bureaucrat']['disableaccount'] = true;
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/LocalisationUpdate/LocalisationUpdate.php' );
+wfLoadExtension( 'LocalisationUpdate' );
$wgLocalisationUpdateDirectory = $IP.'/cache';
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/MobileFrontend/MobileFrontend.php' );
+wfLoadExtension( 'MobileFrontend' );
// Enable detection in PHP. Disable this if you put MW behind a caching layer
$wgMFAutodetectMobileView = true;
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/ParserFunctions/ParserFunctions.php' );
+wfLoadExtension( 'ParserFunctions' );
$wgPFEnableStringFunctions = true;
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once($IP .'/extensions/PdfHandler/PdfHandler.php');
+wfLoadExtension( 'PdfHandler' );
#Disable due to MW Exception
#$wgPdfCreateThumbnailsInJobQueue = true;
<?php
# DO NOT EDIT - This file is being maintained by Chef
ini_set( 'pcre.backtrack_limit', '16M' );
-require_once( $IP.'/extensions/SpamBlacklist/SpamBlacklist.php' );
+wfLoadExtension( 'SpamBlacklist' );
$wgSpamBlacklistFiles = array(
'http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1'
);
<?php
# DO NOT EDIT - This file is being maintained by Chef
-require_once( $IP.'/extensions/TitleBlacklist/TitleBlacklist.php' );
+wfLoadExtension( 'TitleBlacklist' );
$wgTitleBlacklistSources = array(
array(
'type' => TBLSRC_LOCALPAGE,