Set image location explicitly
It's ideal for the image location in mediawiki to be outside of its path. This allows you to have multiple copies of the software while having the uploads in a shared spot. Change-Id: Iae0ac3e13213353d6f101c62f5e150cf844b5694 Reviewed-on: https://review.openstack.org/17575 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
785018cf96
commit
52e19f5476
@ -4,12 +4,13 @@ class mediawiki(
|
||||
$role = '',
|
||||
$site_hostname = '',
|
||||
$mediawiki_location = '',
|
||||
$mediawiki_images_location = '',
|
||||
$ssl_cert_file = "/etc/ssl/certs/${::fqdn}.pem",
|
||||
$ssl_key_file = "/etc/ssl/private/${::fqdn}.key",
|
||||
$ssl_chain_file = '',
|
||||
$ssl_cert_file_contents = '', # If left empty puppet will not create file.
|
||||
$ssl_key_file_contents = '', # If left empty puppet will not create file.
|
||||
$ssl_chain_file_contents = '', # If left empty puppet will not create file.
|
||||
$ssl_cert_file_contents = '', # If left empty puppet will not create file.
|
||||
$ssl_key_file_contents = '', # If left empty puppet will not create file.
|
||||
$ssl_chain_file_contents = '' # If left empty puppet will not create file.
|
||||
) {
|
||||
|
||||
if ($role == 'app' or $role == 'all') {
|
||||
|
@ -96,6 +96,7 @@
|
||||
|
||||
Alias /w <%= scope.lookupvar('mediawiki::mediawiki_location') %>
|
||||
Alias /wiki <%= scope.lookupvar('mediawiki::mediawiki_location') %>/index.php
|
||||
Alias /images <%= scope.lookupvar('mediawiki::mediawiki_images_location') %>
|
||||
|
||||
ErrorLog /var/log/apache2/error.log
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user