Puppet environment leakage

April 1, 2020 – Samuli Seppänen

Occasionally when working with feature branch and updating types and providers you may run into environment leakage issues. They manifest themselves as issues that make no particular sense and are caused by the wrong version of a type/provider such as puppetlabs-apt (see this issue) leaking into your feature environment. This can happen when you update external modules in your Puppetfile. The solution (or band-aid) is fortunately fairly easy. On the Puppetmaster run this command:

$ puppet generate types --environment <environment> --force

After you run this command the Puppet Agents will get the correct types and providers, and the odd error(s) should be gone.

...

Want to talk to an expert?

If you want to reach us, just send us a message or book a free call!
menucross-circle