Overriding foreman parameterized class variables

Greetings,

According to docs [1] Foreman have a very complex hierarchy of global
parameters:

  • Globally defined parameters
  • Organization-level parameters
  • Location-level parameters
  • Domain-level parameters
  • Operating system-level parameters
  • Host group-level parameters
  • Host parameters

So I'm curious: is there any way to override parameterized class variables
on levels that was different from Host and Host group? That will be very
helpful for large setups.

Thanks!

[1] http://www.theforeman.org/manuals/1.8/index.html#4.2.3Parameters

··· -- Kind regards, Vladimir.

Hello

yes there is a way, go to edit form of the smart class parameter and at the
bottom click Add Matcher-Value. Fields for new value will be appended. You can
specify a matcher (a condition under which a value will be used) and a value.
See [2] for more details. Also note that smart variables (not smart class
parameters) are something else that is more similar to global parameters but
supports types, validations etc.

[2] http://www.theforeman.org/manuals/1.8/index.html#4.2.6SmartMatchers

Hope this helps

··· On Monday 08 of June 2015 16:59:39 Vladimir Stackov wrote: > Greetings, > > According to docs [1] Foreman have a very complex hierarchy of global > parameters: > > - Globally defined parameters > - Organization-level parameters > - Location-level parameters > - Domain-level parameters > - Operating system-level parameters > - Host group-level parameters > - Host parameters > > So I'm curious: is there any way to override parameterized class variables > on levels that was different from Host and Host group? That will be very > helpful for large setups. > > Thanks! > > [1] http://www.theforeman.org/manuals/1.8/index.html#4.2.3Parameters


Marek

Do you mean add an override from organization/location etc. edit form?
You can override a smart class parameter/smart variable only from
host/hostgroup or the puppetclass itself.
Organization, location and the rest of the list are not connected to a
puppetclass or environment
so there is no list we can show of what is available to override but you
can override according to what organization/location/domain… the host is
connected to as Marek explained.

··· On Tue, Jun 9, 2015 at 11:06 AM, Marek Hulan wrote:

On Monday 08 of June 2015 16:59:39 Vladimir Stackov wrote:

Greetings,

According to docs [1] Foreman have a very complex hierarchy of global
parameters:

  • Globally defined parameters
  • Organization-level parameters
  • Location-level parameters
  • Domain-level parameters
  • Operating system-level parameters
  • Host group-level parameters
  • Host parameters

So I’m curious: is there any way to override parameterized class
variables
on levels that was different from Host and Host group? That will be very
helpful for large setups.

Thanks!

[1] http://www.theforeman.org/manuals/1.8/index.html#4.2.3Parameters

Hello

yes there is a way, go to edit form of the smart class parameter and at the
bottom click Add Matcher-Value. Fields for new value will be appended. You
can
specify a matcher (a condition under which a value will be used) and a
value.
See [2] for more details. Also note that smart variables (not smart class
parameters) are something else that is more similar to global parameters
but
supports types, validations etc.

[2] http://www.theforeman.org/manuals/1.8/index.html#4.2.6SmartMatchers

Hope this helps


Marek


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

>Do you mean add an override from organization/location etc. edit form?

Exactly. Matchers isn't so user-friendly as simple overriding forms but
thanks anyway!

··· 2015-06-09 11:18 GMT+03:00 Ori Rabin :

Do you mean add an override from organization/location etc. edit form?
You can override a smart class parameter/smart variable only from
host/hostgroup or the puppetclass itself.
Organization, location and the rest of the list are not connected to a
puppetclass or environment
so there is no list we can show of what is available to override but you
can override according to what organization/location/domain… the host is
connected to as Marek explained.

On Tue, Jun 9, 2015 at 11:06 AM, Marek Hulan mhulan@redhat.com wrote:

On Monday 08 of June 2015 16:59:39 Vladimir Stackov wrote:

Greetings,

According to docs [1] Foreman have a very complex hierarchy of global
parameters:

  • Globally defined parameters
  • Organization-level parameters
  • Location-level parameters
  • Domain-level parameters
  • Operating system-level parameters
  • Host group-level parameters
  • Host parameters

So I’m curious: is there any way to override parameterized class
variables
on levels that was different from Host and Host group? That will be very
helpful for large setups.

Thanks!

[1] http://www.theforeman.org/manuals/1.8/index.html#4.2.3Parameters

Hello

yes there is a way, go to edit form of the smart class parameter and at
the
bottom click Add Matcher-Value. Fields for new value will be appended.
You can
specify a matcher (a condition under which a value will be used) and a
value.
See [2] for more details. Also note that smart variables (not smart class
parameters) are something else that is more similar to global parameters
but
supports types, validations etc.

[2] http://www.theforeman.org/manuals/1.8/index.html#4.2.6SmartMatchers

Hope this helps


Marek


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Kind regards,
Vladimir.