----- Original Message -----
> On 08/05/2011 09:33 AM, Nigel Kersten wrote:
> > We have a bunch of problems people regularly run into with node
> > inheritance, and it's something we'd like to find a better solution
> > for.
> >
> Let me guess:
> 
>          - nodes are not classes
>          - node scope is not global scope
> 
> Is there something else that trips people up?

node default {
  $foo = 1

  notify{$foo: }
}

node foo inherits default {
  $foo = 2
}

this will print 1, inheritance is badly designed since this is a common pattern 
 

But also now I think $foo should be considered a top level variable in 2.7
when its not, making node variables more or less useless.

-- 
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