On Apr 19, 2013, at 9:34 AM, jcbollinger <[email protected]> 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
[email protected]
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.