diff --git a/manifests/service_limits.pp b/manifests/service_limits.pp index fb30dd39..53b6d14e 100644 --- a/manifests/service_limits.pp +++ b/manifests/service_limits.pp @@ -72,7 +72,7 @@ if $restart_service { exec { "restart ${name} because limits": command => "systemctl restart ${name}", - path => $::path, + path => $facts['path'], refreshonly => true, subscribe => File["${path}/${name}.d/90-limits.conf"], } diff --git a/manifests/tmpfiles.pp b/manifests/tmpfiles.pp index a5fd03e2..3b613db4 100644 --- a/manifests/tmpfiles.pp +++ b/manifests/tmpfiles.pp @@ -18,6 +18,6 @@ exec { 'systemd-tmpfiles': command => "systemd-tmpfiles ${_ops}", refreshonly => true, - path => $::path, + path => $facts['path'], } }