Feature #2220
closed
Matchers should support inheritance of smart class parameters in nested hostgroups
Added by Roger Spencer almost 12 years ago.
Updated over 11 years ago.
Description
Nested hostgroups should inherit class parameter overrides along with the classes they are inheriting.
Example Hostgroups:
WebServer
WebServer/TypeA
WebServer/TypeB
WebServer/TypeC
If a puppet class is applied to hostgroup WebServer and its parameters overridden, WebServer/TypeA,B,C should all inherit that parameter override -- but retaining the ability to override it again.
This would save a lot of time and remove chance for error in trying to get a class override to all netsted hostgroups of a parent.
Probably related to issue #2132 -- adding ability to configure class parameters at the hostgroup level in the UI.
- Subject changed from Support inheritance of class parameters in nested hostgroups to Matchers should support inheritance of smart class parameters in nested hostgroups
- Category set to Parameters
This is to make the smart class parameters matchers understand hostgroup inheritance instead of matching simply on equality.
I'm also interested in this.
I've a PostgreSQL::Params that defines versions and other parameters.
I've a PostgreSQL class that installs client libs and uses Params to override the version.
Then I've a PostgreSQL::Server, that install the server. That also shares Params, however changing the Params through the smart class does not apply to server.
If I force to inherit Params I get a puppet error:
Error 400 on SERVER: Duplicate declaration: Class[Postgresql::Params] is already declared; cannot redeclare on node
- Target version set to 1.2.0
- Status changed from New to Ready For Testing
- Assignee set to Amos Benari
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF