Skip to content

Conversation

@stejskalleos
Copy link
Contributor

d61cf5a - Return correct template kind without compute attrs
4e9798e - host_param macro & transient parameters

ShimShtein and others added 2 commits December 11, 2025 09:00
If `compute_attributes` are empty, we can still determine the template kind by examining the image that is attached to the host.

(cherry picked from commit 4e9798e)
(cherry picked from commit b156c87)
:host_param macro now allows rendering host parameters
that are assigned to the host, but are not in the database.

Background
Transient (new) host parameters associated with the host are not rendered
in the template check action nor in the 'Orchestration:Templates' queue.

This behavior causes issues for image-based provisioning when the activation key
is defined on the host level, rather than on the hostgroup.

Fixed scenarios
* 'host_param' macro now renders all host parameters
* 'hosts#template_used' action now renders templates with all host parameters
* 'Orchestration::Templates' now renders templates with all host parameters

Links
* Community RFC: https://community.theforeman.org/t/provisioning-hosts-doesnt-work-well-with-host-parameters/44334
* Original ticket: https://projects.theforeman.org/issues/38422

(cherry picked from commit d61cf5a)
(cherry picked from commit 99f0862)
@pr-processor pr-processor bot added Not yet reviewed Stable branch PRs that are opened against a stable branch. Usually a cherry pick labels Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Not yet reviewed Stable branch PRs that are opened against a stable branch. Usually a cherry pick

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants