From: Tigerfell Date: Tue, 9 Mar 2021 20:54:19 +0000 (+0100) Subject: split configuration in two, include new templates X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2f0b6f10a1269e4a0a3ae8897d6fda10dd14fb4d split configuration in two, include new templates --- diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index f3c127e5a..035ae0acc 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -230,13 +230,6 @@ $wgGroupPermissions['*']['createaccount'] = false; $wgUploadPath = "$wgScriptPath/img_auth.php"; <% end -%> -<% if not(@mediawiki[:private_accounts]) and not(@mediawiki[:private_site]) -%> -# user group "confirmed" with identical rights as "autoconfirmed", but assigned manually by sysops -$wgGroupPermissions['confirmed'] = $wgGroupPermissions['autoconfirmed']; -$wgAddGroups['sysop'][] = 'confirmed'; -$wgRemoveGroups['sysop'][] = 'confirmed'; -<% end -%> - # Allow Subpages on Main Namespace $wgNamespacesWithSubpages[NS_MAIN] = true; @@ -273,10 +266,6 @@ $wgAllowExternalImagesFrom = array( 'http://tile.openstreetmap.org/', 'https://t $wgNoFollowDomainExceptions = array( 'www.openstreetmap.org', 'josm.openstreetmap.de', 'taginfo.openstreetmap.org', 'blog.openstreetmap.org', 'wiki.osmfoundation.org' ); -# FIXME - move to specific -# defines which links of the sidebar are translatable -$wgForceUIMsgAsContentMsg = array( 'mainpage-url', 'mapfeatures-url', 'contributors-url', 'helppage', 'blogs-url', 'shop-url', 'sitesupport-url' ); - # FIXME - move to specific $wgAllowUserJs = TRUE; $wgAllowUserCss = TRUE; diff --git a/cookbooks/wiki/recipes/default.rb b/cookbooks/wiki/recipes/default.rb index 72af19cb8..04b7c74c6 100644 --- a/cookbooks/wiki/recipes/default.rb +++ b/cookbooks/wiki/recipes/default.rb @@ -60,6 +60,13 @@ mediawiki_site "wiki.openstreetmap.org" do # site_readonly "MAINTENANCE: WIKI READ-ONLY UNTIL Monday 16 May 2016 - 11:00am UTC/GMT." end +template "/srv/wiki.openstreetmap.org/00_before_extensions.php" do + source "before_extensions.php.erb" + owner node[:mediawiki][:user] + group node[:mediawiki][:group] + mode "600" +end + mediawiki_extension "CodeEditor" do site "wiki.openstreetmap.org" end @@ -134,6 +141,13 @@ directory "/srv/wiki.openstreetmap.org/dump" do mode "0775" end +template "/srv/wiki.openstreetmap.org/99_after_extensions.php" do + source "after_extensions.php.erb" + owner node[:mediawiki][:user] + group node[:mediawiki][:group] + mode "600" +end + cron_d "wiki-dump" do minute "0" hour "2" diff --git a/cookbooks/wiki/templates/default/after_extensions.php.erb b/cookbooks/wiki/templates/default/after_extensions.php.erb new file mode 100644 index 000000000..190b40772 --- /dev/null +++ b/cookbooks/wiki/templates/default/after_extensions.php.erb @@ -0,0 +1,14 @@ +