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:
parent
3466fd78b4
commit
7b02fe89d8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user