Nosmoht / ansible-module-foreman

Ansible module to manage configuration of Foreman
49 stars 32 forks source link

Hostgroup parents #20

Closed agx closed 8 years ago

agx commented 8 years ago

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

https://github.com/Nosmoht/ansible-module-foreman/pull/15

since they overlap.