Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

Limited which nodes receive the plugins isn't really possible unless you hack up the rack config.ru 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: http://rcrowley.org/talks/puppet-camp-2010/#72

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

 
discard

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.