From 88fe618a5abf64fbd1ceaaea3a61a6b91ae672b1 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Fri, 27 Feb 2026 15:30:01 +0100 Subject: [PATCH] OP#470 edit system-reload --- manifests/main/config.pp | 2 +- manifests/main/files.pp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/manifests/main/config.pp b/manifests/main/config.pp index e3f19f6..db859ef 100644 --- a/manifests/main/config.pp +++ b/manifests/main/config.pp @@ -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, diff --git a/manifests/main/files.pp b/manifests/main/files.pp index 93abb76..6f8e8b9 100644 --- a/manifests/main/files.pp +++ b/manifests/main/files.pp @@ -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'], } } }