OP#470 edit system-reload

This commit is contained in:
2026-02-27 15:30:01 +01:00
parent ec52f8f388
commit 88fe618a5a
2 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ class confdroid_prometheus::main::config (
) inherits confdroid_prometheus::params {
include confdroid_prometheus::main::service
exec { 'systemd-daemon-reload':
exec { 'ps-systemd-daemon-reload':
command => '/bin/systemctl daemon-reload',
path => ['/bin', '/usr/bin'],
refreshonly => true,

View File

@@ -5,7 +5,7 @@
##############################################################################
class confdroid_prometheus::main::files (
) inherits confdroid_prometheus::params {
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
require confdroid_prometheus::main::dirs
file { $ps_main_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['systemd-daemon-reload'],
notify => Exec['ps-systemd-daemon-reload'],
}
file { $ps_env_file:
ensure => absent,
ensure => absent,
}
file { $ps_pruning_svc_file:
ensure => absent,
notify => Exec['systemd-daemon-reload'],
notify => Exec['ps-systemd-daemon-reload'],
}
}
}