Skip to content
Snippets Groups Projects
Commit 744345f7 authored by Mark Goddard's avatar Mark Goddard
Browse files

Allow for non-existent groups in kolla-ansible top level group mapping

This allows us to add groups (such as compute) to the top level group mapping,
which are not present in an existing inventory.
parent b598f268
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# Top level {{ group }} group. # Top level {{ group }} group.
[{{ group }}] [{{ group }}]
# These hostnames must be resolvable from your deployment host # These hostnames must be resolvable from your deployment host
{% for host in groups[group] %} {% for host in groups.get(group, []) %}
{% set host_hv=hostvars[host] %} {% set host_hv=hostvars[host] %}
{{ host }}{% for hv_name in kolla_overcloud_inventory_pass_through_host_vars %}{% if hv_name in host_hv %} {{ hv_name }}={{ host_hv[hv_name] }}{% endif %}{% endfor %} {{ host }}{% for hv_name in kolla_overcloud_inventory_pass_through_host_vars %}{% if hv_name in host_hv %} {{ hv_name }}={{ host_hv[hv_name] }}{% endif %}{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment