GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
The function is meant to output the path on the client to the output file. If a client uses a different Puppet[:vardir] however, the code will fail by using the Puppet Masters Puppet[:vardir] - as expected of functions.
This change will use the stdlib puppet_vardir fact to retrieve the proper vardir value. In absence of the stdlib fact, it'll fall back to old behaviour.
use clients vardir
fall back to old behavior if stdlib fact puppet_vardir isnt available
Anything I can do to get this merged?
Best to use ::puppet_vardir to explicitly mean the top level fact.
Sorry, I didn't notice this. 👍
use toplevel var
Using toplevel var now
Thanks @wleese, merged as 806f236.