How does one set the PATH used by Facter::Util::Resolution.exec()?
There is lots of good information about how to set the PATH used by the exec type, globally, or per resource, but what about if one is creating a fact? How does one set the PATH used by Facter::Util::Resolution.exec()?
When running facter (or puppet) interactively, the environment and thus the PATH variable are inherited from the shell environment. This is not so when the agent is run non-interactively, say from cron, or from MCollective, or just running the agent daemon. As such, reliance on the command lookup of the method is unreliable and there seems to be ... (more)