1 |
class wikis { |
2 |
$wikis_root = '/srv/wiki' |
3 |
class { "mediawiki::config": |
4 |
pgsql_password => extlookup("mediawiki_pgsql",'x'), |
5 |
secretkey => extlookup("mediawiki_secretkey",'x'), |
6 |
ldap_password => extlookup('mediawiki_ldap','x'), |
7 |
root => $wikis_root, |
8 |
vhost => false, |
9 |
} |
10 |
|
11 |
$wiki_languages = [ 'en', 'fr' ] |
12 |
mediawiki::instance { "en": |
13 |
title => "Mageia wiki", |
14 |
wiki_settings => template('wikis/wiki_settings'), |
15 |
} |
16 |
|
17 |
apache::vhost_redirect_ssl { "wiki.$domain": } |
18 |
|
19 |
apache::vhost_base { "ssl_wiki.$domain": |
20 |
location => '/dev/null', |
21 |
use_ssl => true, |
22 |
vhost => "wiki.$domain", |
23 |
content => template("wikis/wiki_vhost.conf"), |
24 |
} |
25 |
} |