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 foo > simply haven't been evaluated yet, so you can't reference any > variables in it. Neither class parameters or normal variables. > > If you replace $foo::bar with just $bar in the if statement it should > work. > > And it did. Thank you. This is what I get when I try to be nice and specify exactly from where it should load its variables :)
-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/7Rx--JLr2jkJ. 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.