aboutsummaryrefslogtreecommitdiffstats
path: root/overcloud.j2.yaml
diff options
context:
space:
mode:
authorSteven Hardy <shardy@redhat.com>2017-04-11 16:26:39 +0100
committerSteven Hardy <shardy@redhat.com>2017-04-11 16:26:39 +0100
commit03421f809747681f85430d9ac63d722d7e444688 (patch)
tree7e7baa351e5f0ca2bd1c633de44650d92f59ae90 /overcloud.j2.yaml
parentccb0655db4cb0df125a52262e67b39609f78703b (diff)
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
Diffstat (limited to 'overcloud.j2.yaml')
-rw-r--r--overcloud.j2.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/overcloud.j2.yaml b/overcloud.j2.yaml
index a322a445..8998ce11 100644
--- a/overcloud.j2.yaml
+++ b/overcloud.j2.yaml
@@ -692,3 +692,9 @@ outputs:
{% 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 %}