Hi group,
Im newer on foreman, i used to provide data with hiera, but right now, we
start to use a foreman to do this stuff. I got a problem with this, on
documentation say this:
"This will be imported from puppet initially, but if puppet is using any
class inheritance, you'll get something unhelpful like
"${$foreman::params::user}". This is because Foreman won't follow the
inheritance, so you'll need to set a sensible default value"
This is what its happening, i try to over-write a parameter with on puppet
class is $ipaddress_eth0, but i cant… What i dont understand why, this is
a facter, it doesnt a parameter from inheritance class… Maybe i miss
understantding something… Anybody could do clarify this?¿?¿
Thanks and cheers.
You can use our template syntax
(TemplateWriting - Foreman)
inside a class parameter value, so you could try:
<%= @host.facts_hash['ipaddress_eth0'] %>
···
On 12/06/14 11:24, Fran Rodríguez wrote:
> Hi group,
>
> Im newer on foreman, i used to provide data with hiera, but right now,
> we start to use a foreman to do this stuff. I got a problem with this,
> on documentation say this:
>
> "This will be imported from puppet initially, but if puppet is using any
> class inheritance, you'll get something unhelpful like
> "${$foreman::params::user}". This is because Foreman won't follow the
> inheritance, so you'll need to set a sensible default value"
>
> This is what its happening, i try to over-write a parameter with on
> puppet class is $ipaddress_eth0, but i cant... What i dont understand
> why, this is a facter, it doesnt a parameter from inheritance class...
> Maybe i miss understantding something... Anybody could do clarify this?¿?¿
–
Dominic Cleal
Red Hat Engineering