diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-18 14:30:55 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-18 14:30:55 +0200 |
commit | bd2c5fbb7fda8a3b8fa227cf6ebb682d60b182b1 (patch) | |
tree | 873c690a84fcdeb5c71c893f050874b5602ebea2 /modules | |
parent | f445cf05b72e96ba56eb438ec1777c43bd39919d (diff) | |
download | puppet-bd2c5fbb7fda8a3b8fa227cf6ebb682d60b182b1.tar puppet-bd2c5fbb7fda8a3b8fa227cf6ebb682d60b182b1.tar.gz puppet-bd2c5fbb7fda8a3b8fa227cf6ebb682d60b182b1.tar.bz2 puppet-bd2c5fbb7fda8a3b8fa227cf6ebb682d60b182b1.tar.xz puppet-bd2c5fbb7fda8a3b8fa227cf6ebb682d60b182b1.zip |
mediawiki: Add maintenance folder
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mediawiki/manifests/instance.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mediawiki/manifests/instance.pp b/modules/mediawiki/manifests/instance.pp index c48ac75f..ee880054 100644 --- a/modules/mediawiki/manifests/instance.pp +++ b/modules/mediawiki/manifests/instance.pp @@ -13,6 +13,7 @@ define mediawiki::instance( $title, $secret_key = $mediawiki::config::secretkey $ldap_password = $mediawiki::config::ldap_password $includedir = "/usr/share/mediawiki/includes" + $maintainancedir = "/usr/share/mediawiki/maintenance" file { $wiki_root: ensure => directory @@ -29,6 +30,12 @@ define mediawiki::instance( $title, require => File[$wiki_root], } + file { "${wiki_root}/maintenance": + ensure => link, + target => $maintenancedir, + require => File[$wiki_root], + } + exec { "wikicreate ${name}": command => "mediawiki-create ${wiki_root}", cwd => $mediawiki::base::root, |