The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com
https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:
Master and agent should not share libdir
|Affected Puppet version:||Branch:|
Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com
If the agent and master on the same host, then they share the same libdir by default. This can have bizarre consequences when environments are used — The agent pluginsyncs, the master reads code from an environment-specific modulepath, and the agent writes it into the its libdir. But since the master loads code from there also, the code has leaked across environments.
Having the agent and master share a libdir wasn’t always an issue (#2494). But it doesn’t work when environments are used. Worse, various code loading bugs #4409, #7316, #12173, #13858 have resulted in users copying custom code into the master’s libdir, so that the master can find/load it.
Really, the agent’s libdir is a cache from which it loads code, and should not be visible to the master. Either, the master should completely ignore the libdir setting, or create two properties for agent vs master libdir.