diff --git a/ztp/scripts/bmc.yml b/ztp/scripts/bmc.yml index 56415d98..2e02749c 100644 --- a/ztp/scripts/bmc.yml +++ b/ztp/scripts/bmc.yml @@ -6,6 +6,7 @@ {% set spoke = ztp_spokes[index] %} {% set spoke_name = spoke.name %} {% set virtual_nodes_number = spoke["virtual_nodes_number"]|default(0) %} +{% set ocp_nodes_number = spoke["ctlplanes_number"]|default(0) + spoke["workers_number"]|default(0)%} {% set nodes = spoke["nodes"]|default([]) %} {% if virtual_nodes_number > 0 %} @@ -19,6 +20,8 @@ --- {% for node in nodes %} {% set num = loop.index0 %} +{% if num < ocp_nodes_number %} +{% endif %} apiVersion: v1 data: password: {{ bmc_password|string|base64 }} @@ -80,4 +83,5 @@ spec: wwn: "{{ node['wwn'] }}" {% endif %} --- +{% endif %} {% endfor %}