Merge "Adding apache redirect for the cacti url."
This commit is contained in:
commit
5a5ec2807d
30
modules/openstack_project/files/cacti/apache.conf
Normal file
30
modules/openstack_project/files/cacti/apache.conf
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# ************************************
|
||||||
|
# Managed by Puppet
|
||||||
|
# ************************************
|
||||||
|
|
||||||
|
Alias /cacti /usr/share/cacti/site
|
||||||
|
|
||||||
|
RewriteEngine on
|
||||||
|
RewriteRule ^/$ /cacti/graph_view.php [R,L]
|
||||||
|
|
||||||
|
<Directory /usr/share/cacti/site>
|
||||||
|
Options +FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
order allow,deny
|
||||||
|
allow from all
|
||||||
|
|
||||||
|
AddType application/x-httpd-php .php
|
||||||
|
|
||||||
|
<IfModule mod_php5.c>
|
||||||
|
php_flag magic_quotes_gpc Off
|
||||||
|
php_flag short_open_tag On
|
||||||
|
php_flag register_globals Off
|
||||||
|
php_flag register_argc_argv On
|
||||||
|
php_flag track_vars On
|
||||||
|
# this setting is necessary for some locales
|
||||||
|
php_value mbstring.func_overload 0
|
||||||
|
php_value include_path .
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
DirectoryIndex index.php
|
||||||
|
</Directory>
|
@ -11,10 +11,23 @@ class openstack_project::cacti (
|
|||||||
|
|
||||||
include apache
|
include apache
|
||||||
|
|
||||||
|
a2mod { 'rewrite':
|
||||||
|
ensure => present,
|
||||||
|
}
|
||||||
|
|
||||||
package { 'cacti':
|
package { 'cacti':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/apache2/conf-available/cacti.conf':
|
||||||
|
ensure => present,
|
||||||
|
source => 'puppet:///modules/openstack_project/cacti/apache.conf',
|
||||||
|
mode => '0644',
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
require => Package['cacti'],
|
||||||
|
}
|
||||||
|
|
||||||
file { '/usr/local/share/cacti/resource/snmp_queries':
|
file { '/usr/local/share/cacti/resource/snmp_queries':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
|
Loading…
Reference in New Issue
Block a user