Project

General

Profile

Actions

Feature #22512

closed

Pass Host parameters without foreman_params

Added by Daniel Lobato Garcia about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

If you decide to use Ansible variables ({{ variable }}) on JobTemplates, with http://projects.theforeman.org/issues/22510 it should substitute the variable in the playbook by the HostParameter in Foreman.
However, it doesn't. We send Host Parameters to playbooks in a hash 'foreman_params', so in the playbook they would need to change their variables to 'foreman_params['variable']'.
This is a blocker for people who may want to import their playbooks into Foreman, as I doubt people would like to change all of their variables by 'foreman_params'.
If we serve 'foreman_params['variable']' as just 'variable', that would work and users would be able to use playbooks directly without any change.

This should be configurable in case some people prefer the old behavior of prefixing 'foreman_params'.

Actions #1

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman_ansible/pull/125 added
Actions #2

Updated by Anonymous about 6 years ago

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

Also available in: Atom PDF