Merge "Add VirtualHost to cacti vhost"

This commit is contained in:
Jenkins 2016-05-31 19:09:41 +00:00 committed by Gerrit Code Review
commit 5d5291d790
3 changed files with 20 additions and 14 deletions

View File

@ -220,6 +220,7 @@ node 'cacti.openstack.org' {
class { 'openstack_project::cacti':
sysadmins => hiera('sysadmins', []),
cacti_hosts => hiera_array('cacti_hosts'),
vhost_name => 'cacti.openstack.org',
}
}

View File

@ -2,6 +2,7 @@
class openstack_project::cacti (
$sysadmins = [],
$cacti_hosts = [],
$vhost_name = '',
) {
if $::osfamily != 'Debian' {

View File

@ -2,22 +2,26 @@
# Managed by Puppet
# ************************************
Alias /cacti /usr/share/cacti/site
<VirtualHost *:80>
ServerName <%= @vhost_name %>
RewriteEngine on
RewriteRule ^/$ /cacti/graph_view.php [R,L]
Alias /cacti /usr/share/cacti/site
<Directory /usr/share/cacti/site>
Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfVersion >= 2.4>
Require all granted
</IfVersion>
RewriteEngine on
RewriteRule ^/$ /cacti/graph_view.php [R,L]
AddType application/x-httpd-php .php
<Directory /usr/share/cacti/site>
Options +FollowSymLinks
AllowOverride None
order allow,deny
allow from all
<IfVersion >= 2.4>
Require all granted
</IfVersion>
DirectoryIndex index.php
</Directory>
AddType application/x-httpd-php .php
DirectoryIndex index.php
</Directory>
</VirtualHost>