Skip to content

Hostgroup parents #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 12, 2016
Merged

Hostgroup parents #20

merged 2 commits into from
Apr 12, 2016

Conversation

agx
Copy link
Contributor

@agx agx commented Mar 2, 2016

Foreman divides hostgroups from parent hostgroups by a '/' in the title,
e.g.

  foo/green
  webtier/green
  dbtier/green
  secure/webtier/green

while the name of the hostgroup would always be "green".

So in order to not pick a hostgroup at random search by title and if the
hostgroup name contains slashes wire up the correct parent host group so
we inherit it's parameters.

This also includes the changes from

#15

since they overlap.

agx added 2 commits March 1, 2016 20:03
copied over from the host parameter code.
Foreman divides hostgroups from parent hostgroups by a '/' in the title,
e.g.

  foo/green
  webtier/green
  dbtier/green
  secure/webtier/green

while the name of the hostgroup would always be "green".

So in order to not pick a hostgroup at random search by title and if the
hostgroup name contains slashes wire up the correct parent host group so
we inherit it's parameters.
@Nosmoht Nosmoht merged commit 5b671af into Nosmoht:master Apr 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants