Determine overcloud_groups variable more intelligently

We can use the keys of overcloud_group_hosts_map and overcloud_group_default to
make a reasonable estimate of the overcloud groups.
This commit is contained in:
Mark Goddard 2017-08-23 18:28:55 +00:00
parent 3466fd78b4
commit 7b02fe89d8

View File

@ -7,9 +7,9 @@
overcloud_group_default: controllers
# List of names of Ansible groups for overcloud hosts.
overcloud_groups:
- controllers
- monitoring
overcloud_groups: >
{{ (overcloud_group_hosts_map.keys() +
[overcloud_group_default]) | reject('equalto', 'ignore') | unique | sort | list }}
# Dict mapping overcloud Ansible group names to lists of hosts in the group.
# As a special case, the group 'ignore' can be used to specify hosts that