Project

General

Profile

Actions

Feature #9323

closed

Hosts should be able to inherit their environment from their hostgroup

Added by Erwin Van de Velde almost 10 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Host groups
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

I have created a hierarchy of hostgroups with different environments assigned to them. When a new Puppet node is contacting the Puppet server, it is automatically created and shown in Foreman with a default 'production' environment. I then assign the node to its correct hostgroup, but it does not automatically inherit its environment from its hostgroup, as I would like.

It should be possible (perhaps optional) to have a node always inherit its environment from its hostgroup, so moving a node to a different hostgroup is easier and less error-prone.


Related issues 1 (1 open0 closed)

Related to Foreman - Feature #2436: Ability to update Puppet CA and Puppet Master for multiple hostsNew04/29/2013Actions
Actions #1

Updated by Erwin Van de Velde almost 10 years ago

  • Related to Feature #2436: Ability to update Puppet CA and Puppet Master for multiple hosts added
Actions #2

Updated by Dominic Cleal almost 10 years ago

  • Category set to Host groups
Actions #3

Updated by José M Roldán over 8 years ago

Hi, I'm having the same issue.
I'm using the foreman_default_hostgroup plugin to add the nodes automatically to their hostgroups but they don't inherit the environment set for that group, they get the default 'production' environment.

Is there any fix or workaround to make it inherit the proper environment? It would really make things easier for new deployments.

Thanks

Actions #4

Updated by Ondřej Ezr almost 3 years ago

  • Status changed from New to Rejected

Inheritance is possible, but need to be manually set on the Host. I think that it means this issue is Resolved, if you feel it is not sufficient, please reopen with more info about how would you imagine this would work more automatically and we can have a look into that.

Actions #5

Updated by Ondřej Ezr almost 3 years ago

  • Status changed from Rejected to Resolved
Actions

Also available in: Atom PDF