1 |
misc |
1740 |
class wikis { |
2 |
boklm |
2064 |
$wikis_root = '/srv/wiki' |
3 |
boklm |
2071 |
$wikis_templates = '/srv/wiki-templates' |
4 |
boklm |
2032 |
class { "mediawiki::config": |
5 |
|
|
pgsql_password => extlookup("mediawiki_pgsql",'x'), |
6 |
|
|
secretkey => extlookup("mediawiki_secretkey",'x'), |
7 |
|
|
ldap_password => extlookup('mediawiki_ldap','x'), |
8 |
boklm |
2064 |
root => $wikis_root, |
9 |
|
|
vhost => false, |
10 |
boklm |
2032 |
} |
11 |
|
|
|
12 |
boklm |
2071 |
subversion::snapshot { $wikis_templates: |
13 |
|
|
source => "svn://svn.$domain/svn/web/templates/mediawiki' |
14 |
|
|
} |
15 |
|
|
|
16 |
boklm |
2064 |
$wiki_languages = [ 'en', 'fr' ] |
17 |
misc |
1740 |
mediawiki::instance { "en": |
18 |
|
|
title => "Mageia wiki", |
19 |
boklm |
2054 |
wiki_settings => template('wikis/wiki_settings'), |
20 |
misc |
1740 |
} |
21 |
boklm |
2064 |
|
22 |
|
|
apache::vhost_redirect_ssl { "wiki.$domain": } |
23 |
|
|
|
24 |
|
|
apache::vhost_base { "ssl_wiki.$domain": |
25 |
|
|
location => '/dev/null', |
26 |
|
|
use_ssl => true, |
27 |
|
|
vhost => "wiki.$domain", |
28 |
boklm |
2065 |
content => template("wikis/wiki_vhost.conf"), |
29 |
boklm |
2064 |
} |
30 |
misc |
1740 |
} |