Project

General

Profile

Actions

Bug #20062

open

Host parameter not rendered in user_data template

Added by Anthony Chevalet almost 7 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

I'm running Foreman 1.14.3 and have an issue with host parameters not available in user_data template.

In the template I have:

<%= @host.params['myparam'] %>

On the host creation page, in the parameter tab, I add a host param 'myparam' with value 'test'.
Once the host is created, the 'Preview' template correctly shows the param value.

But the generated template on the target machine (in /var/lib/cloud..) does not contain the param value (it is empty).

If I set the parameter on hostgroup or subnet then it works as expected.
The problem is only with params at host level.


Related issues 4 (4 open0 closed)

Related to Foreman - Bug #19465: User data template rendering does not render host parametersNewActions
Related to Foreman - Bug #23104: Host parameters not available in foreman_hooks Need more informationActions
Related to Foreman - Bug #21618: hostgroup parameter does not show up in the PXE templateNew11/09/2017Actions
Related to Foreman - Bug #21552: Host parameters added/updated via API do not make it to userscript on provisioning to EC2New11/01/2017Actions
Actions

Also available in: Atom PDF