Matchers should support inheritance of smart class parameters in nested hostgroups
Nested hostgroups should inherit class parameter overrides along with the classes they are inheriting.
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.
#1 Updated by Dominic Cleal over 6 years ago
- 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 Smart Variables
This is to make the smart class parameters matchers understand hostgroup inheritance instead of matching simply on equality.
#2 Updated by Charles Gomes over 6 years ago
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