-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flapping $::path forces to persist a new catalog into PuppetDB #64
Comments
Would you suggest using an explicit path? That makes sense to me. |
Our local patch is: diff --git a/code/manifests/systemctl/daemon_reload.pp b/code/manifests/systemctl/daemon_reload.pp
index f42efdc..1d2d05c 100644
--- a/code/manifests/systemctl/daemon_reload.pp
+++ b/code/manifests/systemctl/daemon_reload.pp
@@ -3,8 +3,7 @@
# @api public
class systemd::systemctl::daemon_reload {
exec { 'systemctl-daemon-reload':
- command => 'systemctl daemon-reload',
+ command => '/usr/bin/systemctl daemon-reload',
refreshonly => true,
- path => $::path,
}
} It of course ignores other platforms where the path could be different :) |
I'm pretty sure that current Gentoo stable is |
@nbarrientos which puppet version do you use? Can you show our puppet.conf? I under stand the issue, but I'm not able to reproduce it with mit different puppet 5.x systems. |
Hi, Thanks for replying :) To "trigger" the issue the value of
In our case it's different because we do this:
But I'd say that's totally normal to have a different path for login shells ;) Here it is our
Thanks! |
Getting back to this. Using the If this is problematic to you, you could override the |
Is it? It is camptocamp modules :-) Not sure I've seen it else where. |
Maybe I'm too used to our own standard? 😕 |
Hi,
When running Puppet interactively the value of
$::path
might differ from background runs as the former is taken from the login shell. This generates a catalog diff that perhaps will not apply any change on the target system but it will force a catalog replacement on PuppetDB which is kind of unnecessary IMHO.https://github.com/camptocamp/puppet-systemd/blob/20a465b0d8751bc08913b556d0a5b7fdac139271/manifests/systemctl/daemon_reload.pp#L8
The text was updated successfully, but these errors were encountered: