On Jan 11, 2013 8:49 PM, "jcbollinger" <john.bollin...@stjude.org> wrote:
>
>
>
> On Friday, January 11, 2013 12:01:52 PM UTC-6, Erik Dalén wrote:
>>
>> At least in puppet 3 resource defaults are local to defines and classes
and doesn't get inherited to any included defines or classes. So to make
upgrading easier you shouldn't make any such assumptions in your code.
>
>
> That is not correct (see
http://docs.puppetlabs.com/puppet/3/reference/lang_defaults.html).  The
problem is that resource defaults are dynamically scoped (even in Puppet
3), not lexically scoped.  Roughly speaking, that means defaults follow the
chain of declarations, regardless of the location of the definitions of the
classes and definitions in the chain.

Hmm, okay I stand corrected. But I think the intention was at one point at
least to remove dynamic scoping of resource defaults in puppet 3:
http://docs.puppetlabs.com/guides/scope_and_puppet.html

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

Reply via email to