aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha
diff options
context:
space:
mode:
authorGuillermo Herrero <guillermo.herrero@enea.com>2017-12-14 11:36:35 +0100
committerGuillermo Herrero <guillermo.herrero@enea.com>2017-12-14 10:48:35 +0000
commitee149500e0e6bde0152aa56140046a2d1b995eb4 (patch)
tree61c229b7e5529d252e76757068a061425f01301e /mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha
parentf1f85fdbd111e3b2adea6e8a4185f3e50f92a02f (diff)
[baremetal] idf support for different board types
This modification enables having different models of target nodes but restricts them to two groups of the same kind assuming: - 3 KVMs will be same model and have the same NIC names - 2 Compute nodes will be the same model and have same NIC names This is an ad-hoc change for arm-pod7. Will work for all other setups but the jinja2 logic should be evetually extended to support a per board approach, allowing any board to be any kind Change-Id: Ie994d661e3dbe5b9a33d290a850a6152cf320c86 Signed-off-by: Guillermo Herrero <guillermo.herrero@enea.com>
Diffstat (limited to 'mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha')
-rw-r--r--mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j2 b/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j2
index cee41700e..43ce8f9bb 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j2
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j2
@@ -16,7 +16,7 @@
{%- set idx_public = conf['net_config']['public']['interface'] -%}
{#- Physical interface OS name for each network (e.g. em1, enp1s0f1) -#}
- {%- set iface_names = conf['idf']['fuel']['network']['node'][0]['interfaces'] -%}
+ {%- set iface_names = conf['idf']['fuel']['network']['node'][3]['interfaces'] -%}
{%- set nic_admin = iface_names[idx_admin] -%}
{%- set nic_mgmt = iface_names[idx_mgmt] -%}
{%- set nic_private = iface_names[idx_private] -%}