diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-04-20 16:30:18 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-04-20 16:30:43 +0200 |
commit | d2992a4eb191d8d6930b73fe250c8ffe4dcc3498 (patch) | |
tree | a6f7cec2b5d637b0e7529cc14917d4120948995e | |
parent | 890509003314d02b97e57404b6f7f1afbb89e17b (diff) | |
download | puppet-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
-rw-r--r-- | modules/mediawiki/manifests/instance.pp | 6 | ||||
-rw-r--r-- | modules/mediawiki/templates/LocalSettings.php | 5 |
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 ) ); |