Project

General

Profile

Actions

Feature #2220

closed

Matchers should support inheritance of smart class parameters in nested hostgroups

Added by Roger Spencer over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Parameters
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Feature #2132: Allow overriding of class parameters in the hostgroup UIClosedAmos Benari01/16/2013Actions
Actions #1

Updated by Dominic Cleal over 11 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 Parameters

This is to make the smart class parameters matchers understand hostgroup inheritance instead of matching simply on equality.

Actions #2

Updated by Charles Gomes over 11 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 

Actions #3

Updated by Dominic Cleal over 11 years ago

  • Target version set to 1.2.0
Actions #4

Updated by Dominic Cleal over 11 years ago

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

Updated by Amos Benari over 11 years ago

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

Also available in: Atom PDF