3
0
Arne Teuke
2025-10-18 14:07:20 +02:00
parent d69edd2891
commit 224198f624
4 changed files with 8 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
class prometheus_cd::main::dirs (
) inherits prometheus_cd::params {
require prometheus_cd::main::install
if $ps_prom_host == fqdn {
($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
file { $ps_main_dir:
ensure => directory,
owner => 'root',

View File

@@ -6,7 +6,7 @@
class prometheus_cd::main::files (
) inherits prometheus_cd::params {
require prometheus_cd::main::dirs
if $ps_prom_host == fqdn {
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
file { $ps_main_file:
ensure => file,
owner => 'root',

View File

@@ -5,9 +5,9 @@
##############################################################################
class prometheus_cd::main::service (
) inherits prometheus_cd::params {
require prometheus_cd::main::files
require prometheus_cd::firewall::iptables
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
require prometheus_cd::main::files
require prometheus_cd::firewall::iptables
service { $ps_prom_service:
ensure => running,
hasstatus => true,