OP#470 edit system-reload
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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'],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user