Re: [Puppet Users] Re: Best practice for module params in foo::params

2011-12-26 Thread Alessandro Franceschi
Note that you can use hiera to gather and define variables at top level scope and keep the usage of ::vars on your params class. This has the advantage that if you will ever need to change the method you use to give values to the top scope variable, you just have to change the references at top

Re: [Puppet Users] Re: Best practice for module params in foo::params

2011-12-22 Thread Nigel Kersten
On Thu, Dec 22, 2011 at 6:54 AM, Walter Heck wrote: > Hmm, that's the second time in two weeks someone mentions hiera as a > solution for a problem that cannot easily be solved inside puppet, I guess > it's time to go check it out :) We're committed to Hiera, and are looking to integrate it as

Re: [Puppet Users] Re: Best practice for module params in foo::params

2011-12-22 Thread Walter Heck
Hmm, that's the second time in two weeks someone mentions hiera as a solution for a problem that cannot easily be solved inside puppet, I guess it's time to go check it out :) On Thu, Dec 22, 2011 at 15:56, jcbollinger wrote: > > > On Dec 21, 3:40 pm, Walter Heck wrote: > > Hello, > > > > a rela

[Puppet Users] Re: Best practice for module params in foo::params

2011-12-22 Thread jcbollinger
On Dec 21, 3:40 pm, Walter Heck wrote: > Hello, > > a related question here on this list sparked me to write this question, > which has been bugging me for a bit now: > > I use the following pattern inside my modules quite abit: > > class foo::params{ > >   $bar = $::foo_bar ? { >     '' => 'som