add fw and dirs control - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/260
This commit is contained in:
@@ -6,4 +6,16 @@
|
||||
class prometheus_cd::main::dirs (
|
||||
) inherits prometheus_cd::params {
|
||||
require prometheus_cd::main::install
|
||||
if $ps_prom_host == fqdn {
|
||||
file { $ps_main_dir:
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
class prometheus_cd::main::service (
|
||||
) inherits prometheus_cd::params {
|
||||
require prometheus_cd::main::files
|
||||
if $manage_prometheus == true {
|
||||
require prometheus_cd::firewall::iptables
|
||||
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
|
||||
service { 'prometheus':
|
||||
ensure => running,
|
||||
hasstatus => true,
|
||||
|
||||
Reference in New Issue
Block a user