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 10, 2025 10:01
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)
: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)
@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 10, 2025
@ekohl
Copy link
Member

ekohl commented Dec 10, 2025

Please also open a PR for 3.17.

@chris1984
Copy link
Member

Will this need a packaging bump as well to make a new version for 3.16 and 3.17?

@stejskalleos
Copy link
Contributor Author

Please also open a PR for 3.17.

#10798

Will this need a packaging bump

AFAIK, no package changes (except for Foreman itself) are needed.

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.

4 participants