Issue #13537 has been updated by Nigel Kersten.

Status changed from Needs Decision to Needs More Information

That's my suspicion too. 

In many ways class inheritance was there to fill in some of the gaps that 
parameterized classes provided later.

Before we prioritized this, I'd like to see some more details from users on 
where class inheritance for parameterized classes provides functionality that 
can't be more easily provided using parameterized classes directly.
----------------------------------------
Bug #13537: Overriding class parameters doesn't actually pass new parameters.
https://projects.puppetlabs.com/issues/13537#change-59681

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.

Reply via email to