From 7939d5ecd5d8cf7e08580ccbd1db570ecfff6255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Sat, 2 Sep 2017 16:49:21 +0200 Subject: Create extensions symplink --- modules/mediawiki/manifests/instance.pp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/mediawiki') diff --git a/modules/mediawiki/manifests/instance.pp b/modules/mediawiki/manifests/instance.pp index d548cb08..c6906449 100644 --- a/modules/mediawiki/manifests/instance.pp +++ b/modules/mediawiki/manifests/instance.pp @@ -16,6 +16,7 @@ define mediawiki::instance( $title, $maintenancedir = "/usr/share/mediawiki/maintenance" $vendordir = "/usr/share/mediawiki/vendor" $resourcesdir = "/usr/share/mediawiki/resources" + $extensionsdir = "/usr/share/mediawiki/extensions" file { $wiki_root: ensure => directory @@ -50,6 +51,12 @@ define mediawiki::instance( $title, require => File[$wiki_root], } + file { "${wiki_root}/extensions": + ensure => link, + target => $extensionsdir, + require => File[$wiki_root], + } + file { "${wiki_root}/cache": ensure => directory, owner => apache, -- cgit v1.2.1