Issue #13537 has been updated by Dustin Mitchell.
Reduced test case:
class takes_param($param=purple) {
notify {
"param is $param": ;
}
}
class parent {
class {
'takes_param':
param => true;
}
}
class child inherits parent {
Class['takes_param'] { param => false }
}
include child
This is useful to me because my toplevel classes need to be something I could
specify from an ENC, which means only node-scope variables (yuck) and class
names.
----------------------------------------
Bug #13537: Overriding class parameters doesn't actually pass new parameters.
https://projects.puppetlabs.com/issues/13537#change-74688
Author: Marek Kroemeke
Status: Needs More Information
Priority: Normal
Assignee: Nigel Kersten
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
Hello,
OS: RHEL 5.8, RHEL 5.7
Puppet: 2.7.11, 2.7.12*
I'm not 100% certain if this a design decision or simply a bug - but because
puppet doesn't complain about the syntax I suspect this is a bug.
<pre>
class nodetype::foo {
class { network:
default_gateway => '172.23.1.1',
routes => {
multicast => {
comment => 'multicast over eth0',
address => '224.0.0.0',
netmask => '240.0.0.0',
},
}
}
}
class nodetype::foo::egg inherits nodetype::foo {
Class["network"] {
default_gateway => '172.23.1.2',
}
}
</pre>
This does not work - i.e. parameter passes is still 172.23.1.1.
Best regards,
Marek
* daysman@#puppet
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.