/[adm]/puppet/modules/mediawiki/manifests/base.pp
ViewVC logotype

Contents of /puppet/modules/mediawiki/manifests/base.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2691 - (show annotations) (download)
Sun Mar 25 12:47:26 2012 UTC (9 years, 4 months ago) by misc
File size: 874 byte(s)
fix vhost invocation on several module, was missed by last commit, and add the one for redirect_ssl
1 class mediawiki::base {
2 include apache::mod::php
3 $vhost = $mediawiki::config::vhost
4 $root = $mediawiki::config::root
5
6 package { ['mediawiki-minimal','mediawiki-ldapauthentication']: }
7
8 file { $mediawiki::config::root:
9 ensure => directory,
10 }
11
12 file { '/usr/local/bin/init_wiki.php':
13 mode => '0755',
14 source => 'puppet:///modules/mediawiki/init_wiki.php',
15 }
16
17 $user = 'mediawiki'
18
19 postgresql::remote_user { $user:
20 password => $mediawiki::config::pgsql_password,
21 }
22
23 # TODO create the ldap user
24
25 if $vhost {
26 apache::vhost::redirect_ssl { $vhost: }
27
28 apache::vhost::base { "ssl_$vhost":
29 location => $root,
30 use_ssl => true,
31 vhost => $vhost,
32 content => template('mediawiki/wiki_vhost.conf'),
33 }
34 }
35 # add index.php
36 }

  ViewVC Help
Powered by ViewVC 1.1.28