Migrate cacti.o.o to trusty
The time has come to migrate cacti.o.o from Ubuntu Precise and Ubuntu Trusty. Change-Id: Ia67ddb07baeaa19eaa47962d26ddba46a8fee6d3 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
a3620649c2
commit
49567918f5
@ -206,7 +206,7 @@ node 'jenkins-dev.openstack.org' {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Node-OS: precise
|
# Node-OS: trusty
|
||||||
node 'cacti.openstack.org' {
|
node 'cacti.openstack.org' {
|
||||||
include openstack_project::ssl_cert_check
|
include openstack_project::ssl_cert_check
|
||||||
class { 'openstack_project::cacti':
|
class { 'openstack_project::cacti':
|
||||||
|
@ -13,25 +13,19 @@ class openstack_project::cacti (
|
|||||||
sysadmins => $sysadmins,
|
sysadmins => $sysadmins,
|
||||||
}
|
}
|
||||||
|
|
||||||
include ::httpd
|
class { '::apache':
|
||||||
|
mpm_module => 'prefork',
|
||||||
if ! defined(Httpd::Mod['rewrite']) {
|
|
||||||
httpd::mod { 'rewrite':
|
|
||||||
ensure => present,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
class { '::apache::mod::rewrite': }
|
||||||
|
class { '::apache::mod::php': }
|
||||||
|
|
||||||
package { 'cacti':
|
package { 'cacti':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/apache2/conf.d/cacti.conf':
|
::apache::vhost::custom { $::fqdn:
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => 'puppet:///modules/openstack_project/cacti/apache.conf',
|
content => template('openstack_project/cacti.vhost.erb'),
|
||||||
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':
|
||||||
|
@ -15,16 +15,6 @@ RewriteRule ^/$ /cacti/graph_view.php [R,L]
|
|||||||
|
|
||||||
AddType application/x-httpd-php .php
|
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
|
DirectoryIndex index.php
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user