Add RoleNetIpMap output to overcloud.j2.yaml
authorSteven Hardy <shardy@redhat.com>
Tue, 11 Apr 2017 15:26:39 +0000 (16:26 +0100)
committerSteven Hardy <shardy@redhat.com>
Tue, 11 Apr 2017 15:26:39 +0000 (16:26 +0100)
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

overcloud.j2.yaml

index a322a44..8998ce1 100644 (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 %}