diff options
-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", |