Project

General

Profile

Actions

Bug #5247

closed

Smart Class parameters cannot be overridden in nested host groups

Added by Martin Jackson almost 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Puppet integration
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Running the 1.5.0RC1 with puppet 3.5.1 from puppetlabs.

I have three hostgroups:

base
base/nullmailer
base/nullmailer/foreman

I have the foreman's puppet class applied to base, and am overriding puppet::server to "false". I can see the value set in base. I also have puppet::server_git_repo overridden to "true".

I do not see those variables in either base/nullmailer or in base/nullmailer/foreman.

I know some organizations depend greatly on parameter inheritance, so I am setting the priority to "High".

I can provide logs etc. if needed.

Actions #1

Updated by Martin Jackson almost 10 years ago

Note: The title should read "nested hostgroups", sorry.

Actions #2

Updated by Dominic Cleal almost 10 years ago

  • Subject changed from Smart Class parameters cannot be overridden in nested classes to Smart Class parameters cannot be overridden in nested host groups
  • Category set to Puppet integration
  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal
  • Target version set to 1.8.4
  • translation missing: en.field_release set to 4

https://github.com/theforeman/foreman/pull/1394

This seems to occur when the environment on the child host group has an inherited environment ("Inherit parent (production)"). Explicitly set environments, or the above patch should resolve it. Thanks!

Actions #3

Updated by Martin Jackson almost 10 years ago

Tested and working. I could see and override values in nested hostgroups.

Actions #4

Updated by Dominic Cleal almost 10 years ago

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

Also available in: Atom PDF