diff --git a/puppet/all-nodes-config.j2.yaml b/puppet/all-nodes-config.j2.yaml index 15269f837a..7e7b4c1b10 100644 --- a/puppet/all-nodes-config.j2.yaml +++ b/puppet/all-nodes-config.j2.yaml @@ -1,3 +1,7 @@ +{%- set _networks = [] -%} +{%- for network in networks -%} + {%- set _networks = _networks.append(network.name) -%} +{%- endfor -%} heat_template_version: rocky description: 'All Nodes Config for Puppet' @@ -198,8 +202,10 @@ resources: get_param: [NetVipMap, {get_param: [ServiceNetMap, keystone_public_api_network]}] public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]} controller_virtual_ip: {get_param: [NetVipMap, ctlplane]} +{%- if 'InternalApi' in _networks %} # the internal_api_virtual_ip is needed for contrail only internal_api_virtual_ip: {get_param: [NetVipMap, {get_param: InternalApiNetName}]} +{%- endif %} network_virtual_ips: {%- for network in networks if network.vip|default(false) %} # External virtual ip is currently being handled separately as public_virtual_ip.