Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Use service_net_map for internal_api_vip
Browse files Browse the repository at this point in the history
Use the internal_api_network entry in service_net_map for
internal_api_virtual_ip instead of conditions on hard-coded
network name 'InternalApi'.

Also clean up indentation for public_virtual_ip.

Related-Bug: #1946239
Depends-On: I1dcd9da59487bfa0842c5f131a0e9a9d9d0c676d
Change-Id: Iaba927739f82253809b1f0a1c96b9ac98a005ed6
  • Loading branch information
hjensas committed Oct 12, 2021
1 parent 3af34f0 commit abbfc7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ provisioner:
heat_api_cloudwatch_network: ctlplane
heat_api_network: ctlplane
horizon_network: ctlplane
internal_api_network: ctlplane
ironic_api_network: ctlplane
ironic_inspector_network: ctlplane
ironic_network: ctlplane
Expand Down
6 changes: 2 additions & 4 deletions tripleo_ansible/roles/tripleo_hieradata/templates/vip_data.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
{% set _ = vip_data.__setitem__('controller_virtual_ip', control_virtual_ip) %}
{% set _ = vip_data.__setitem__('keystone_admin_api_vip', (net_vip_map[service_net_map['keystone_admin_api_network']])) %}
{% set _ = vip_data.__setitem__('keystone_public_api_vip', (net_vip_map[service_net_map['keystone_public_api_network']])) %}
{% set _ = vip_data.__setitem__('public_virtual_ip', (net_vip_map[service_net_map['public_network']])) %}
{% if 'InternalApi' in enabled_networks %}
{% set _ = vip_data.__setitem__('public_virtual_ip', (net_vip_map[service_net_map['public_network']])) %}
{# the internal_api_virtual_ip is needed for contrail only #}
{% set _ = vip_data.__setitem__('internal_api_virtual_ip', (net_vip_map[networks['InternalApi']['name_lower']])) %}
{% endif %}
{% set _ = vip_data.__setitem__('internal_api_virtual_ip', (net_vip_map[service_net_map['internal_api_network']])) %}
{% set _ = vip_data.__setitem__('network_virtual_ips', network_virtual_ips) %}
{% set _ = vip_data.__setitem__('ceph_dashboard_vip', (net_vip_map[service_net_map['ceph_dashboard_network']])) %}
{% set _ = vip_data.__setitem__('ganesha_vip', (net_vip_map[service_net_map['ganesha_network']])) %}
Expand Down

0 comments on commit abbfc7f

Please sign in to comment.