openstack-ansible/osa_toolkit
Dmitriy Rabotyagov 120c942fda Enchance reference_group logic for inventory
reference_group [1] is a key used to filter out provider_networks
assignment to containers more easily. So one can use same group_binds
but execute extra filtering using reference_group. This is especially
useful in multi-pod or multi-az deployments.

However, currently reference_group expects always to find hosts directly
in the group, but not looking inside children groups.

The patch changes the logic of how reference_group lookups for the
hosts in group by descending into each child and populating the list to
compare with.

[1] https://docs.openstack.org/openstack-ansible/latest/user/l3pods/example.html#environment-layout

Change-Id: I7faccad43e55692656ba3046165e6eecd38a9984
2024-08-06 15:13:44 +00:00
..
__init__.py Restructure lib directory to install via pip 2017-03-30 10:19:01 -04:00
dictutils.py Improve compatibiliity with Python 3 2017-06-06 10:44:13 -04:00
filesystem.py Deprecate openstack_hostnames_ips 2022-07-28 11:48:27 +02:00
generate.py Enchance reference_group logic for inventory 2024-08-06 15:13:44 +00:00
ip.py Rename black/white list variables 2021-06-18 08:35:55 +00:00
manage.py Stop ignoring hostnames without underscores 2023-10-11 13:58:11 -05:00
tools.py Restore dynamic_inventory unit testing 2023-01-11 10:14:43 +00:00