Project

General

Profile

Feature #9323

Hosts should be able to inherit their environment from their hostgroup

Added by Erwin Van de Velde almost 8 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Host groups
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Related to Foreman - Feature #2436: Ability to update Puppet CA and Puppet Master for multiple hostsNew2013-04-29

History

#1 Updated by Erwin Van de Velde almost 8 years ago

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

#2 Updated by Dominic Cleal almost 8 years ago

  • Category set to Host groups

#3 Updated by José M Roldán over 6 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

#4 Updated by Ondřej Ezr about 1 year 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.

#5 Updated by Ondřej Ezr about 1 year ago

  • Status changed from Rejected to Resolved

Also available in: Atom PDF