Add RoleNetIpMap output to overcloud.j2.yaml

To enable easier detection of the IPs associated with nodes (such
as to enable the tripleo-validations ansible inventory to work with
custom roles more easily) expose the data we already have about the
nodes/roles and the list of IPs for each network.

Change-Id: I5667a142f47fbff120c703bedadd8b6e163c9480
This commit is contained in:
Steven Hardy 2017-04-11 16:26:39 +01:00
parent ccb0655db4
commit 03421f8097
1 changed files with 6 additions and 0 deletions

View File

@ -691,4 +691,10 @@ outputs:
value:
{% for role in roles %}
{{role.name}}: {get_attr: [{{role.name}}ServiceChain, role_data]}
{% endfor %}
RoleNetIpMap:
description: Mapping of each network to a list of IPs for each role
value:
{% for role in roles %}
{{role.name}}: {get_attr: [{{role.name}}IpListMap, net_ip_map]}
{% endfor %}