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 #1

Updated by Marek Hulán about 8 years ago

  • Description updated (diff)
Actions #2

Updated by Marek Hulán about 8 years ago

  • Target version changed from 115 to 1.5.0
Actions #3

Updated by Marek Hulán about 8 years ago

  • Target version changed from 1.5.0 to 1.4.2
Actions #4

Updated by Ondřej Pražák about 8 years ago

  • Assignee set to Ondřej Pražák
Actions #5

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3983 added
Actions #6

Updated by Marek Hulán about 8 years ago

  • Target version changed from 1.4.2 to 1.4.4
Actions #7

Updated by Marek Hulán about 8 years ago

  • Target version changed from 1.4.4 to 1.10.1
Actions #8

Updated by Ondřej Pražák almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #9

Updated by Dominic Cleal almost 8 years ago

  • Translation missing: en.field_release set to 209
Actions #10

Updated by The Foreman Bot almost 8 years ago

  • Pull request https://github.com/theforeman/community-templates/pull/343 added
Actions #11

Updated by The Foreman Bot almost 8 years ago

  • Pull request https://github.com/theforeman/foreman/pull/4187 added
Actions #12

Updated by Marek Hulán over 7 years ago

  • Target version changed from 1.10.1 to 1.17.0-RC2
Actions #13

Updated by Ivan Necas over 7 years ago

  • Related to Bug #20931: Using host_params in parameters leads to @Safemode doesn't allow to access 'host_params' on #<Safemode::ScopeObject>@ added
Actions #14

Updated by Ivan Necas about 7 years ago

  • Related to Bug #20968: invalid YAML in lookup keys can break db migrations added
Actions #15

Updated by Marek Hulán almost 7 years ago

  • Related to Bug #22483: SSH key setup does not work added
Actions #16

Updated by Lukas Zapletal over 6 years ago

  • Related to Bug #23934: Still some @host.param leftovers added
Actions #17

Updated by Tomer Brisker over 6 years ago

  • Related to Bug #24640: 1.17 migration causes array/hash values for parameters to turn into strings with escaped quotes added
Actions

Also available in: Atom PDF