diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-10-24 18:20:04 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-10-24 18:20:04 +0000 |
commit | b14c824151ee7511af0e46969b5fa491e2a41586 (patch) | |
tree | 73966157653bfbdfd3fb54fba1bbd76dac7aed08 /modules/mediawiki | |
parent | 9d782d50658815cb2589d546dc1e48e9b8e0d69d (diff) | |
download | puppet-b14c824151ee7511af0e46969b5fa491e2a41586.tar puppet-b14c824151ee7511af0e46969b5fa491e2a41586.tar.gz puppet-b14c824151ee7511af0e46969b5fa491e2a41586.tar.bz2 puppet-b14c824151ee7511af0e46969b5fa491e2a41586.tar.xz puppet-b14c824151ee7511af0e46969b5fa491e2a41586.zip |
add an option to select skins directory
Diffstat (limited to 'modules/mediawiki')
-rw-r--r-- | modules/mediawiki/manifests/init.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/mediawiki/manifests/init.pp b/modules/mediawiki/manifests/init.pp index 021eecef..f0b8815c 100644 --- a/modules/mediawiki/manifests/init.pp +++ b/modules/mediawiki/manifests/init.pp @@ -53,7 +53,7 @@ class mediawiki { # do wiki basic installation - define instance($title, $wiki_settings = '') { + define instance($title, $wiki_settings = '', $skinsdir = '/usr/share/mediawiki/skins') { include mediawiki::base @@ -69,6 +69,12 @@ class mediawiki { ensure => directory } + file { "$wiki_root/skins": + ensure => link, + target => $skinsdir, + require => File["$wiki_root"], + } + exec { "wikicreate $name": command => "mediawiki-create $wiki_root", cwd => "$mediawiki::base::root", |