Issue #13537 has been updated by Andrew Parker. File inherit-param-class.pp added Status changed from Unreviewed to Needs Decision Assignee set to Nigel Kersten
It seems that the documented feature of class inheritance (see http://docs.puppetlabs.com/guides/language_guide.html#resource-collections) works for basic resource types, but fails for parameterized classes. The attatched manifest shows this problem. The Notify inside "foo" has a different message because of bar inheriting and overriding the message parameter, but the same thing doesn't seem to work for overriding the parameter to the parameterized class "params" used by "foo". Marek, what you are trying to do would probably be better achieved by making nodetype::foo parameterized instead of trying to use inheritance and overriding resource settings. ---------------------------------------- Bug #13537: Overriding class parameters doesn't actually pass new parameters. https://projects.puppetlabs.com/issues/13537#change-59680 Author: Marek Kroemeke Status: Needs Decision 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.
