Re: [Puppet Users] complex data types in puppet & facter

2010-04-05 Thread Greg Retkowski
Hello Dan, Thanks. I'm following your suggestion and serializing anything complex that I need to get at in ERB. -- Greg Dan Bode wrote: Hi, On Fri, Apr 2, 2010 at 3:37 PM, Greg Retkowski <mailto:g...@rage.net>> wrote: Good Afternoon, I'm running puppet vers. 0

[Puppet Users] complex data types in puppet & facter

2010-04-02 Thread Greg Retkowski
Good Afternoon, I'm running puppet vers. 0.24.4 and am trying to use some facts in puppet ERB templates. It appears as long as the fact is a simple type, such as a String, the fact works as expected in the ERB template. However if the fact is something more complex (like a Hash) it appears to

Re: [Puppet Users] ensuring a file is copied in before evaluating another class.

2010-02-26 Thread Greg Retkowski
I also tried this in my top-level puppet config: if $defined_after_bootstrap_var { import "definitions/*.pp" } else { import "bootstrap.pp" } However it looks like the 'import definitions/*.pp' is still evaluated even though $defined_after_bootstrap_var isn't defined. Is there a way to condi

Re: [Puppet Users] ensuring a file is copied in before evaluating another class.

2010-02-25 Thread Greg Retkowski
se puppet's sync which is described her: http://reductivelabs.com/trac/puppet/wiki/PluginsInModules This will distribute your facter addons at the beginning of your run and you can use them in like any normal fact. On Thu, Feb 25, 2010 at 10:25 PM, Greg Retkowski wrote: Hello Everyone, I have

[Puppet Users] ensuring a file is copied in before evaluating another class.

2010-02-25 Thread Greg Retkowski
Hello Everyone, I have a case where I'm depending on custom facter rules in my puppet config, and those custom facter rules come from a ruby library that puppet installs. I need to know how I can ensure that library is installed by puppet before classes that depend on those facts are evaluate