Hostgroup class parameters / inheritance

Am I missing something or is it not possible to configure class parameters
within a hostgroup's properties?

I know I can do it from the puppet class by specifying which hostgroup to
apply the parameter to. But if I have the following hostgroups:

base
base/group1
base/group2
base/group3

If I specify that members of group "base" get the parameter then hosts in
base/group1 do not get the parameter. Are they supposed to or is there no
inheritance with parameters through nested groups?

Are there plans to be able to configure class parameters directly on the
hostgroup? Would make things much easier.

Thanks,

Hi Roger,

> Am I missing something or is it not possible to configure class
> parameters within a hostgroup's properties?
>
> I know I can do it from the puppet class by specifying which hostgroup
> to apply the parameter to. But if I have the following hostgroups:
>
> base
> base/group1
> base/group2
> base/group3
>
> If I specify that members of group "base" get the parameter then hosts
> in base/group1 do not get the parameter. Are they supposed to or is
> there no inheritance with parameters through nested groups?

The matchers are equality based at the moment, so they don't understand
hostgroup inheritance. I don't think we've got a bug reported for this,
would you mind filing one?

http://projects.theforeman.org/projects/foreman/issues/new

I think David's mentioning it in comment #3 on the bug below, but we
could do with a unique issue.

> Are there plans to be able to configure class parameters directly on the
> hostgroup? Would make things much easier.

We've got this logged, as it's been requested a lot. Maybe we can
target it for 1.2?

http://projects.theforeman.org/issues/2132

··· On 18/02/13 19:42, Roger wrote:


Dominic Cleal
Red Hat Engineering

Thanks.

Added Feature #2220: Matchers should support inheritance of smart class parameters in nested hostgroups - Foreman

··· On Tuesday, February 19, 2013 3:59:38 AM UTC-5, Dominic Cleal wrote: > > Hi Roger, > > On 18/02/13 19:42, Roger wrote: > > Am I missing something or is it not possible to configure class > > parameters within a hostgroup's properties? > > > > I know I can do it from the puppet class by specifying which hostgroup > > to apply the parameter to. But if I have the following hostgroups: > > > > base > > base/group1 > > base/group2 > > base/group3 > > > > If I specify that members of group "base" get the parameter then hosts > > in base/group1 do not get the parameter. Are they supposed to or is > > there no inheritance with parameters through nested groups? > > The matchers are equality based at the moment, so they don't understand > hostgroup inheritance. I don't think we've got a bug reported for this, > would you mind filing one? > > http://projects.theforeman.org/projects/foreman/issues/new > > I think David's mentioning it in comment #3 on the bug below, but we > could do with a unique issue. > > > Are there plans to be able to configure class parameters directly on the > > hostgroup? Would make things much easier. > > We've got this logged, as it's been requested a lot. Maybe we can > target it for 1.2? > > http://projects.theforeman.org/issues/2132 > > -- > Dominic Cleal > Red Hat Engineering >