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'], } } }