Project

General

Profile

Actions

Feature #16740

closed

Host parameters should be available in templates using some macro

Added by Marek Hulán about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Templates
Target version:

Description

We should provide easy way to use all host parameters in templates to avoid calling internal method like @host.info['parameter'] or variable @parameters. Also there should be only one way so users don't have to check both info and @parameters. Ideally we'd add some macro to access it, which would also cache it while keeping it lazy (load on first time access).


Related issues 5 (1 open4 closed)

Related to Foreman - Bug #20931: Using host_params in parameters leads to @Safemode doesn't allow to access 'host_params' on #<Safemode::ScopeObject>@ClosedIvan NecasActions
Related to Foreman - Bug #20968: invalid YAML in lookup keys can break db migrationsNew09/17/2017Actions
Related to Foreman Remote Execution - Bug #22483: SSH key setup does not workClosedMarek Hulán02/01/2018Actions
Related to Foreman - Bug #23934: Still some @host.param leftoversClosedLukas Zapletal06/14/2018Actions
Related to Foreman - Bug #24640: 1.17 migration causes array/hash values for parameters to turn into strings with escaped quotesClosedTomer BriskerActions
Actions

Also available in: Atom PDF