On 07/12/16 14:47, jamese wrote:
> The issue I'm having is that one of my host params is being completely
> ignored.
> 
> In my partition template, I have the following:
> 
> os_soft_raid = @host.params['os_soft_raid'] || true
> 
> I'm then using this variable later, let's say like this:
> if [ "<%= os_soft_raid -%>" == "true" ]; then
>  do some software raid things
> fi
> 
> I have explicitly set the host param to "false" and if I preview the
> template via the foreman UI for the host I'm trying to build, it
> correctly shows that os_soft_raid gets rendered into "false".  However,
> when the host contacts the smart proxy to get the template, the
> os_soft_raid param is set to "true", the default.
> 
> I can replicate this by either going to my central foreman instance with
> the following uri:
> 
> http://foreman.my.domain/unattended/provision?token=111178ea-08ca-4db4-946c-11faf4bcd681&url=http%3A%2F%2F10.1.1.1%3A8000

This is tracked under http://projects.theforeman.org/issues/17395, with
a fix under review that will likely be in 1.13.3.

It happens under some OS types when the partition table also contains
references to params - if you're able to remove that, it'd probably work
around the issue.

-- 
Dominic Cleal
[email protected]

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to