Fix Ansible inventory generation when reusing group names
When a kolla-ansible group is composed of a kayobe group with the same name and of at least one other kayobe group, kayobe would generate an invalid Ansible inventory such as: [compute:children] controllers compute Because the top-level group should already be defined, we only need to add as children the kayobe groups using different names. Change-Id: I88bdf1e3d0c08271ac8938ae2f9ac3f9fee1efa5 Story: 2009927 Task: 44798
This commit is contained in:
parent
60d74df815
commit
0c190a22f0
@ -36,7 +36,7 @@ ansible_python_interpreter={{ kolla_ansible_target_venv }}/bin/python
|
|||||||
# Mapping from kolla-ansible group {{ kolla_group }} to top level kayobe
|
# Mapping from kolla-ansible group {{ kolla_group }} to top level kayobe
|
||||||
# groups.
|
# groups.
|
||||||
[{{ kolla_group }}:children]
|
[{{ kolla_group }}:children]
|
||||||
{% for group in kolla_group_config.groups %}
|
{% for group in renamed_groups %}
|
||||||
{{ group }}
|
{{ group }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Fixes Ansible inventory generation with some custom group mappings using
|
||||||
|
the same group names for Kayobe and Kolla Ansible. See `story 2009927
|
||||||
|
<https://storyboard.openstack.org/#!/story/2009927>`__ for details.
|
Loading…
Reference in New Issue
Block a user