aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mediawiki
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-04-20 16:30:18 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-04-20 16:30:43 +0200
commitd2992a4eb191d8d6930b73fe250c8ffe4dcc3498 (patch)
treea6f7cec2b5d637b0e7529cc14917d4120948995e /modules/mediawiki
parent890509003314d02b97e57404b6f7f1afbb89e17b (diff)
downloadpuppet-d2992a4eb191d8d6930b73fe250c8ffe4dcc3498.tar
puppet-d2992a4eb191d8d6930b73fe250c8ffe4dcc3498.tar.gz
puppet-d2992a4eb191d8d6930b73fe250c8ffe4dcc3498.tar.bz2
puppet-d2992a4eb191d8d6930b73fe250c8ffe4dcc3498.tar.xz
puppet-d2992a4eb191d8d6930b73fe250c8ffe4dcc3498.zip
Mediawiki: Create tmp folder, needed for Vector skin
Diffstat (limited to 'modules/mediawiki')
-rw-r--r--modules/mediawiki/manifests/instance.pp6
-rw-r--r--modules/mediawiki/templates/LocalSettings.php5
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/mediawiki/manifests/instance.pp b/modules/mediawiki/manifests/instance.pp
index a6ff1047..5b4eef5d 100644
--- a/modules/mediawiki/manifests/instance.pp
+++ b/modules/mediawiki/manifests/instance.pp
@@ -49,6 +49,12 @@ define mediawiki::instance( $title,
mode => '0755',
}
+ file { "${wiki_root}/tmp":
+ ensure => directory,
+ owner => apache,
+ mode => '0755',
+ }
+
exec { "wikicreate ${name}":
command => "mediawiki-create ${wiki_root}",
cwd => $mediawiki::base::root,
diff --git a/modules/mediawiki/templates/LocalSettings.php b/modules/mediawiki/templates/LocalSettings.php
index a7be19e3..98c9e263 100644
--- a/modules/mediawiki/templates/LocalSettings.php
+++ b/modules/mediawiki/templates/LocalSettings.php
@@ -100,6 +100,11 @@ $wgShellLocale = "en_US.UTF-8";
# FIXME: Dehardcode that path (maybe via ${wiki_root} if exposed?)
$wgCacheDirectory = "/srv/wiki/<%= path %>/cache";
+# This seems mandatory to get the Vector skin to work properly
+# https://phabricator.wikimedia.org/T119934
+# FIXME: Dehardcode that path (maybe via ${wiki_root} if exposed?)
+$wgTmpDirectory = "/srv/wiki/<%= path %>/tmp";
+
# Array of interwiki prefixes for current wiki.
$wgLocalInterwikis = array( strtolower( $wgSitename ) );