Project

General

Profile

Feature #2220

Matchers should support inheritance of smart class parameters in nested hostgroups

Added by Roger Spencer almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Smart Variables
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

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.


Related issues

Related to Foreman - Feature #2132: Allow overriding of class parameters in the hostgroup UIClosed2013-01-16

Associated revisions

Revision 0f9df583 (diff)
Added by Amos Benari over 6 years ago

fixes #2220 - Suport hostgroup puppet classes parameters inheritance.

History

#1 Updated by Dominic Cleal almost 7 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 

#3 Updated by Dominic Cleal over 6 years ago

  • Target version set to 1.2.0

#4 Updated by Dominic Cleal over 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Amos Benari

#5 Updated by Amos Benari over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF