Re: [Puppet Users] Variables and scope with inherits

2012-08-13 Thread Svein
On Monday, August 13, 2012 9:25:44 AM UTC+2, Erik Dalén wrote: > > When you inherit from a class the class you inherit from is evaluated > first, which is why it is able to set the parameter defaults for the > "subclass". > > So when those if statements in foo::params are evaluated the class f

Re: [Puppet Users] Variables and scope with inherits

2012-08-13 Thread Erik Dalén
When you inherit from a class the class you inherit from is evaluated first, which is why it is able to set the parameter defaults for the "subclass". So when those if statements in foo::params are evaluated the class foo simply haven't been evaluated yet, so you can't reference any variables in i