Bug 1744521
Summary: | There is no way to identify the overriden Ansible variables while creating or editing an existing host | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Mihir Lele <mlele> |
Component: | Ansible - Configuration Management | Assignee: | satellite6-bugs <satellite6-bugs> |
Status: | CLOSED ERRATA | QA Contact: | Sam Bible <sbible> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.6.0 | CC: | joshua.kenward, ktordeur, matthew.lesieur, mkalyat, mmccune, oezr, osousa, rakumar, rbeyel, riehecky, smajumda, smeyer, tbrisker, zhunting |
Target Milestone: | 6.11.0 | Keywords: | Triaged, UserExperience |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | tfm-rubygem-foreman_ansible-7.0.0 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-07-05 14:27:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mihir Lele
2019-08-22 10:21:57 UTC
Connecting redmine issue https://projects.theforeman.org/issues/25159 from this bug *** Bug 1866830 has been marked as a duplicate of this bug. *** *** Bug 1860611 has been marked as a duplicate of this bug. *** *** Bug 1871180 has been marked as a duplicate of this bug. *** Satellite 6.9 documentation states Ansible variables can be overridden at the Host and Host Group level, but my experience is this is not true. Specifically, the documentation says: "To use the Ansible variable, add the variable as a parameter to your host or host group, or add the variable as a global parameter." [1] I was surprised to find I can't set Ansible variables at the Host or Host Group level. Also, maybe related, Ansible variables are not included when Ansible uses Satellite as an inventory source (redhat.satellite.foreman and theforeman.foreman.foreman inventory plugins). Puppet class variables are included with a host's inventory, but not Ansible variables. Regards Matthew LeSieur [1] https://access.redhat.com/documentation/en-us/red_hat_satellite/6.9/html/configuring_satellite_to_use_ansible/getting-started-with-ansible_ansible#overriding-Ansible-variables_ansible Correction to my previous comment (comment #10). Puppet class variables are not included with a host's inventory when queried using redhat.satellite.foreman or theforeman.foreman.foreman inventory plugins. Regards Matthew LeSieur We are working on displaying the Ansible roles and variables assigned to the host as part of the new host detail page. Users will be also able to override the values from there directly, without going the the complex host edit form. The similar experience for host groups may come later. This will be included in Sat 7.0 as part of the new Host Details page, needs the new version of foreman_ansible plugin (7.0). Verified on: Sat 6.11 - 18 Steps to Verify: 1) Create a host. 2) Assign the host an ansible role that includes an overridden variable 3) Navigate to the Host Details page Actual Results: Under the Ansible tab, and then the Variables tab, you can see the overridden variable and what it's been set to. You can also change this in the same tab, either changing the override value, or remove the override. Expected Results: Overridden variables are visible as part of the Host Details page. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5498 |