Merge "Fix cacti node and add os check"
This commit is contained in:
commit
77ec3f4466
@ -2,6 +2,11 @@
|
||||
class openstack_project::cacti (
|
||||
$sysadmins = []
|
||||
) {
|
||||
|
||||
if $::osfamily != 'Debian' {
|
||||
fail("${::osfamily} is not supported.")
|
||||
}
|
||||
|
||||
class { 'openstack_project::server':
|
||||
iptables_public_tcp_ports => [80, 443],
|
||||
sysadmins => $sysadmins,
|
||||
@ -17,7 +22,7 @@ class openstack_project::cacti (
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
file { '/etc/apache2/conf-available/cacti.conf':
|
||||
file { '/etc/apache2/conf.d/cacti.conf':
|
||||
ensure => present,
|
||||
source => 'puppet:///modules/openstack_project/cacti/apache.conf',
|
||||
mode => '0644',
|
||||
|
Loading…
Reference in New Issue
Block a user