Re: [Puppet Users] custom puppet facts

2013-03-11 Thread Oliver Leach
I've read up on this a bit more and I am now beginning to understand how custom facts work. It did surprise me actually that all custom facts get instantiated at runtime - I also understand that you can write your ruby scripts in a way that your custom facts scripts do not necessarily need to apply

Re: [Puppet Users] custom puppet facts

2013-03-11 Thread Jonathan Proulx
You can also use the puppetlabs stdlib module which provides an easy ad-hoc way of defining arbitrary facts on a system using text files in /etc/facter/facts.d/ more info: https://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppetlabs-standard-library-part-3 Many facts are best disco

Re: [Puppet Users] custom puppet facts

2013-03-11 Thread Stefan Goethals
Facts automatically get distributed to all nodes with pluginsync. You need to write them in such a way that they will only create the fact on the nodes that need it. Stefan - Zipkid - Goethals On Mon, Mar 11, 2013 at 1:31 PM, vioilly wrote: > I have written a custom puppet fact using a ruby sc

[Puppet Users] custom puppet facts

2013-03-11 Thread vioilly
I have written a custom puppet fact using a ruby script. It is very simple - it just adds a string to a fact. However I have written a module but it appears to me that the custom fact has been applied to all my machines without me specifying any node definitions. When I run a puppet agent --tes