1 |
class wikis { |
class wikis { |
2 |
|
$wikis_root = '/srv/wiki' |
3 |
class { "mediawiki::config": |
class { "mediawiki::config": |
4 |
pgsql_password => extlookup("mediawiki_pgsql",'x'), |
pgsql_password => extlookup("mediawiki_pgsql",'x'), |
5 |
secretkey => extlookup("mediawiki_secretkey",'x'), |
secretkey => extlookup("mediawiki_secretkey",'x'), |
6 |
ldap_password => extlookup('mediawiki_ldap','x'), |
ldap_password => extlookup('mediawiki_ldap','x'), |
7 |
|
root => $wikis_root, |
8 |
|
vhost => false, |
9 |
} |
} |
10 |
|
|
11 |
|
$wiki_languages = [ 'en', 'fr' ] |
12 |
mediawiki::instance { "en": |
mediawiki::instance { "en": |
13 |
title => "Mageia wiki", |
title => "Mageia wiki", |
14 |
wiki_settings => template('wikis/wiki_settings'), |
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("wiki/wiki_vhost.conf"), |
24 |
|
} |
25 |
} |
} |