On Apr 19, 2013, at 9:34 AM, jcbollinger <john.bollin...@stjude.org> wrote:

> Moreover, I wanted to point out that, contrary to Brian's implication, 
> automated class parameter binding is independent of whether parameters have 
> explicit default values.  If you do not bind a parameter's value via a 
> class's declaration (and you shouldn't) then Puppet attempts to look up a 
> value for it via hiera, regardless of whether an explicit default value is 
> declared by the class.  Only if the hiera lookup fails is an explicit default 
> used.


That's kind of cool.  

class foo (
    $bar => hiera('baz', 'bap'),
) { }

So $bar will be set to "bap" only if foo::bar and baz are not found in Hiera, 
in that order? 

--
Brian Lalor
bla...@bravo5.org


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to