On Tuesday, August 7, 2012 8:45:45 AM UTC-5, Yaniv Fine wrote: > > well its wroking for me now . > newbie question . > if i put the test.rb file inside > > modules/common/test/lib/facter/test.rb > is it normal that it runs automatically on all servers without a way for > me to control what machine will run it ? > >
Yes. Ruby sources placed in lib/facter are expected to contain custom facts. They will be synced automatically to every client node that has pluginsync enabled, and they will be run via Facter on every node on which they appear, to gather the node's fact values. They should not contain any code other than that of the custom fact(s) they define. Within a fact definition, however, you can control whether your code will run on the node via the 'confine' function provided by the custom fact framework. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/CXjH8Sz0J50J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.