With a manifest like so:
class base {
$myvar = '1234'
file {
'/tmp/foo':
content => template('test.erb')
}
}
class newbase inherits base {
$myvar = '5678'
}
node default {
include newbase
}
And test.erb with <%= myvar %>
/tmp/foo contains 1234, when I would expect it to contain 5678.
Is this a bug, or a limitation of class inheritance? (ie, base classes
are evaluated completely, and subclasses are only allowed to modify
things after the fact?)
Cheers :)
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.