Foreman global parameter

Hi

I am using foreman1.2 and puppet 3.2 and puppet master and foreman is on
the same host. I am provisioning machine through foreman as well. I am
using parametrized puppet class and overwritten it at class level from web
interface. Created a global parameter with same name as in puppet class and
provided a value. If I go to hosts/edit/parameters, It is showing 'included
parameter via inheritance' and correct value.

but yaml for the host doesn't show any value for that parameter.

Any idea ?

Thanks
Kashif

Hi Lukas

Thanks, re-reading of foreman documentation and some experimentation made
it little bit more clearer. I am just reiterating my understanding to
check whether I am right

'Smart Class Parameters' are the variable passed to parametrize class.
Foreman can directly import it from puppet and show it in foreman. If I
overwrite it then it goes into ENC provided by foreman. Default values does
not go into ENC.

'Smart Variables' have to be created manually to feed values in ENC. It has
to be associated with a class.

'Global Variables' is not associated with a particular class. If a class
uses the same variable name and it is not overwritten by 'smart variable'
then 'Global Variable will be used.

My other question is that how to query foreman ENC directly from command
line ?

Thanks
Kashif

··· On Friday, August 16, 2013 3:28:36 PM UTC+1, kashi...@gmail.com wrote: > > > Hi > > I am using foreman1.2 and puppet 3.2 and puppet master and foreman is on > the same host. I am provisioning machine through foreman as well. I am > using parametrized puppet class and overwritten it at class level from web > interface. Created a global parameter with same name as in puppet class and > provided a value. If I go to hosts/edit/parameters, It is showing 'included > parameter via inheritance' and correct value. > > but yaml for the host doesn't show any value for that parameter. > > Any idea ? > > Thanks > Kashif > >

Hello,

there are two things, global parameters and smart parameters. I think
you are mixing those two.

Read the whole Chapter 4.2 and see if that helps.

http://theforeman.org/manuals/1.2/index.html#4.2ManagingPuppet

LZ

··· On Fri, Aug 16, 2013 at 07:28:36AM -0700, kashif.alig@gmail.com wrote: > > Hi > > I am using foreman1.2 and puppet 3.2 and puppet master and foreman is on > the same host. I am provisioning machine through foreman as well. I am > using parametrized puppet class and overwritten it at class level from web > interface. Created a global parameter with same name as in puppet class and > provided a value. If I go to hosts/edit/parameters, It is showing 'included > parameter via inheritance' and correct value. > > but yaml for the host doesn't show any value for that parameter. > > Any idea ? > > Thanks > Kashif > > -- > 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/groups/opt_out.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

> 'Smart Class Parameters' are the variable passed to parametrize class.
> Foreman can directly import it from puppet and show it in foreman. If I
> overwrite it then it goes into ENC provided by foreman. Default values does
> not go into ENC.
>
> 'Smart Variables' have to be created manually to feed values in ENC. It has
> to be associated with a class.
>
> 'Global Variables' is not associated with a particular class. If a class
> uses the same variable name and it is not overwritten by 'smart variable'
> then 'Global Variable will be used.

I believe that's right.

> My other question is that how to query foreman ENC directly from command
> line ?

Not sure what you mean by command line, but you can use wget/curl and
see the content via:

http://thefm/hosts/santiago.my.lan/externalNodes?name=santiago.my.lan

Might need to provide credentials (curl -k admin:changeme).

··· On Mon, Aug 19, 2013 at 05:00:24AM -0700, kashif.alig@gmail.com wrote:


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman