Added variable collab_webroot for changing collab path in apache config

Also allow version number in moin_static symlink name.
This commit is contained in:
Ossi Salmi 2012-12-13 19:27:21 +02:00
parent f254f1a33d
commit c0d8476315
3 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,3 @@
<Directory "/srv/www/https/*/moin_static"> <Directory "/srv/www/https/*/moin_static*">
AllowOverride FileInfo AllowOverride FileInfo
</Directory> </Directory>

View file

@ -142,6 +142,10 @@ class wiki::collab inherits wiki::graphingwiki::common {
# $collab_webhosts: # $collab_webhosts:
# List of collab virtual hosts. Defaults to [ "$homename" ]. # List of collab virtual hosts. Defaults to [ "$homename" ].
# #
# $collab_webroot:
# Path to collab in webserver document root.
# Defaults to "/srv/www/https/*/collab".
#
# $collab_jabberdomain: # $collab_jabberdomain:
# Domain for jabber extauth. # Domain for jabber extauth.
# #
@ -328,9 +332,13 @@ class wiki::collab::base {
$wiki_collab_fqdn = $homename $wiki_collab_fqdn = $homename
} }
if !$collab_webroot {
$collab_webroot = "/srv/www/https/*/collab"
}
apache::configfile { "collab.conf": apache::configfile { "collab.conf":
http => false, http => false,
source => "puppet:///modules/wiki/collab-httpd.conf", content => template("wiki/collab-httpd.conf.erb"),
} }
exec { "collab-create collab collab": exec { "collab-create collab collab":

View file

@ -1,4 +1,4 @@
<Directory "/srv/www/https/*/collab"> <Directory "<%= collab_webroot %>">
Options +ExecCGI Options +ExecCGI
AllowOverride All AllowOverride All
</Directory> </Directory>