tripleo client discrepancy in generating ansible.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Invalid
|
Medium
|
Unassigned |
Bug Description
There is "openstack tripleo config generate ansible" https:/
Since some time ago it seems we've had a discrepancy in configuration methods though. Now we have a second place that ensures ansible.cfg: https:/
Those must be unified and not conflict to each other. Otherwise running the aforementioned CLI command by a user overwrites the config generated with the latter code and vice versa.
Changed in tripleo: | |
importance: | Undecided → Medium |
status: | New → Triaged |
milestone: | none → victoria-1 |
tags: | added: tech-debt ux |
Since we've switched execution to ansible-runner and removed mistral, we're are doing our best to not use an ansible.cfg file all together. The code within tripleoclient to create an ansible.cfg [0] file, if one doesn't exist, contains only one option; this is the only option not able to be expressed in environment variables [1].
Just as a note, if a user provides an ANSIBLE_CFG file or if one is discovered, we don't replace the file, we simply append the option we require [2]. If you're seeing this method replace a provided ansible.cfg file, not append it, then that is a bug; however, as this stands today it looks like everything is working as intended.
[0] https:/ /github. com/openstack/ python- tripleoclient/ blob/7b2ea578f6 0377d3d6e304869 7d932e48ea149e2 /tripleoclient/ utils.py# L611-L627 /docs.ansible. com/ansible/ latest/ reference_ appendices/ config. html#envvar- ANSIBLE_ POLL_INTERVAL /github. com/openstack/ python- tripleoclient/ blob/7b2ea578f6 0377d3d6e304869 7d932e48ea149e2 /tripleoclient/ utils.py# L616-L624
[1] https:/
[2] https:/