Ask Your Question

Deleted modules on puppetmaster still being used on Windows client?

asked 2014-03-19 16:59:56 -0600

cwb124 gravatar image

I was using a module downloaded from puppetforge to test it out to see if we want to use it. I called it from another module in the manifests\init.pp file. Showed some failures and etc and we ended up not wanting to use it. I removed the module from puppet server. However when my Windows puppet client checks into puppet, it is trying to apply the settings that are no longer in the init.pp file. Very confused. Is this a caching issue or something?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-03-19 17:20:45 -0600

Stefan gravatar image

The puppet agent does indeed cache the catalog it retrieves from the puppet master but it will only get used if the puppet master is not able to deliver a catalog the next time. This is behaviour can be changed with the usecacheonfailure option which defaults to true.

So let's say you have downloaded the module and included a new class in your node definition. You then run puppet agent and get the new catalog with resources from the new class. When you now remove the new module form your master but forget to remove the include statement in ... (more)

edit flag offensive delete link more

answered 2014-03-21 12:09:23 -0600

joshc gravatar image

Did you originally run puppet module install on the agent? If so, then you need to uninstall it on the agent, e.g.puppet module uninstall foo-bar.

If you originally installed the module on the puppetmaster and distributed it to agents using pluginsync (which enabled by default), then it should be deleted from the agent's pluginsync directory the next time it runs. You can confirm this by executing puppet agent --configprint plugindest and checking to see if code from the module, e.g. custom fact, type, provider, are present within that directory.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-03-19 16:59:56 -0600

Seen: 381 times

Last updated: Mar 21 '14