From: Steven Hardy Date: Tue, 11 Apr 2017 15:26:39 +0000 (+0100) Subject: Add RoleNetIpMap output to overcloud.j2.yaml X-Git-Tag: opnfv-6.0.0~773^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=03421f809747681f85430d9ac63d722d7e444688;p=apex-tripleo-heat-templates.git 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 --- diff --git a/overcloud.j2.yaml b/overcloud.j2.yaml index a322a445..8998ce11 100644 --- a/overcloud.j2.yaml +++ b/overcloud.j2.yaml @@ -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 %}