Project

General

Profile

Actions

Bug #12010

open

Default Host Group - Environment selection keeps defaulting to "production" rather then that which is specified in the hostgroup

Added by Sher Chowdhury over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

Description

I managed to configure this plugin so that the correct hostgroup gets assigned to an agent when it registers with foreman for the first time. However the environment always defaults to "productions", even though the hostgroup has a different environment specified in it.

This could be because the code effective calls a change-group immediately after the host is created. This means that the agent get's an environment assigned before this plugin has had chance to assign a hostgroup to the agent.

Actions #1

Updated by Sher Chowdhury over 8 years ago

Here's the link to the default hostgroup plugin:

https://github.com/theforeman/foreman_default_hostgroup/

Actions

Also available in: Atom PDF