Project

General

Profile

Actions

Feature #18671

closed

Option to provide Foreman params without containing dictionary

Added by Josh Benner over 7 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Currently, when running from the Foreman UI, Foreman params are exposed via a 'foreman_params' dictionary.

I'd like to write and use generic roles that have no special knowledge of foreman, and when running roles directly from Foreman, I don't have an opportunity to map foreman_params values onto role values.

Instead, I'd like the option to pass the params directly at the top of the inventory. Perhaps a global setting?

Relevant code: https://github.com/theforeman/foreman_ansible/blob/master/app/services/foreman_ansible/inventory_creator.rb#L32


Files

host-params-ansible.png View host-params-ansible.png 56.3 KB Ondřej Pražák, 04/23/2019 09:53 AM
test-playbook.png View test-playbook.png 18.3 KB Ondřej Pražák, 04/23/2019 09:53 AM
playbook-output.png View playbook-output.png 44.7 KB Ondřej Pražák, 04/23/2019 09:53 AM

Updated by Ondřej Pražák over 5 years ago

Thank you for your feature request, I think this is fixed by #26068.
It is now possible to have host parameters and use them directly as the screenshots show. I will close but feel free to reopen if I misunderstood or the new inventory structure does not work for you.

Actions

Also available in: Atom PDF