add confdroid_prometheus

This commit is contained in:
2026-02-27 16:20:47 +01:00
parent a16b264886
commit 451f19b93d

View File

@@ -77,7 +77,7 @@ class confdroid_prometheus::main::files (
seltype => systemd_unit_file_t,
seluser => unconfined_u,
content => template('confdroid_prometheus/prometheus-prune-service.erb'),
notify => Exec['systemd-daemon-reload'],
notify => Exec['ps-systemd-daemon-reload'],
}
file { $ps_pruning_timer_file:
ensure => file,
@@ -89,7 +89,7 @@ class confdroid_prometheus::main::files (
seltype => systemd_unit_file_t,
seluser => unconfined_u,
content => template('confdroid_prometheus/prometheus-prune-timer.erb'),
notify => Exec['systemd-daemon-reload'],
notify => Exec['ps-systemd-daemon-reload'],
}
file { $ps_prune_log_file:
ensure => file,
@@ -102,14 +102,14 @@ class confdroid_prometheus::main::files (
if $ps_enable_pruning == false {
file { $ps_pruning_file:
ensure => absent,
notify => Exec['ps-systemd-daemon-reload'],
notify => Exec['ps-ps-systemd-daemon-reload'],
}
file { $ps_env_file:
ensure => absent,
}
file { $ps_pruning_svc_file:
ensure => absent,
notify => Exec['ps-systemd-daemon-reload'],
notify => Exec['ps-ps-systemd-daemon-reload'],
}
}
}