aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mediawiki
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mediawiki')
-rw-r--r--modules/mediawiki/manifests/instance.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mediawiki/manifests/instance.pp b/modules/mediawiki/manifests/instance.pp
index 5b4eef5d..d548cb08 100644
--- a/modules/mediawiki/manifests/instance.pp
+++ b/modules/mediawiki/manifests/instance.pp
@@ -15,6 +15,7 @@ define mediawiki::instance( $title,
$includedir = "/usr/share/mediawiki/includes"
$maintenancedir = "/usr/share/mediawiki/maintenance"
$vendordir = "/usr/share/mediawiki/vendor"
+ $resourcesdir = "/usr/share/mediawiki/resources"
file { $wiki_root:
ensure => directory
@@ -43,6 +44,12 @@ define mediawiki::instance( $title,
require => File[$wiki_root],
}
+ file { "${wiki_root}/resources":
+ ensure => link,
+ target => $resourcesdir,
+ require => File[$wiki_root],
+ }
+
file { "${wiki_root}/cache":
ensure => directory,
owner => apache,