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