Browse Source

Merge "Only add internal_api_virtual_ip if InternalApi in network_data"

changes/98/629798/1
Zuul 4 years ago committed by Gerrit Code Review
parent
commit
0435f6cc23
  1. 6
      puppet/all-nodes-config.j2.yaml

6
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.

Loading…
Cancel
Save