Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a plugin that gets pushed to all clients. However, I have one that's specific to a particular module, hence I don't want it synced with all my clients.

My generic plugin is stored in /etc/puppet/modules/custom/lib/facter but I have a plugin stored inside a module that seems to be pushed to all clients regardless if the host inherits the class or not.

Location of module: /etc/puppet/modules/apache/lib/facter/SAMPLE_PLUGIN.rb

share|improve this question

Limited which nodes receive the plugins isn't really possible unless you hack up the rack file. There is no real API for hacking how Rack interacts with the webserver, but if you really need this feature see some examples here:

However, you should really look into Confine in Facter instead.

It's designed to only run facter discovery under special conditions.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.