Add composable network VIPs for puppet configuration
Adds new hiera parameters for VIPs for all isolated networks including any custom composable networks. The existing hard-coded network parameters can be removed when the puppet-tripleo change https://review.openstack.org/#/c/531037 merges that no longer uses them. The new network_virtual_ips paramater contains the network name, vip, and an index used to generate the vrouter_id in puppet-tripleo. Change-Id: If8d3219a0714e3db34980e884dce84912a837865 Partial-Bug: 1741129
This commit is contained in:
parent
d05b39d149
commit
749a99a5cd
@ -184,7 +184,19 @@ resources:
|
|||||||
public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
|
public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
|
||||||
controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
|
controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
|
||||||
{%- for network in networks if network.vip|default(false) %}
|
{%- for network in networks if network.vip|default(false) %}
|
||||||
|
# TODO - remove these when puppet-tripleo patch https://review.openstack.org/#/c/531037 merges
|
||||||
|
# the internal_api_virtual_ip will still be needed for now however, as its used by contrail
|
||||||
{{network.name_lower}}_virtual_ip: {get_param: [NetVipMap, {get_param: {{network.name}}NetName}]}
|
{{network.name_lower}}_virtual_ip: {get_param: [NetVipMap, {get_param: {{network.name}}NetName}]}
|
||||||
|
{%- endfor %}
|
||||||
|
network_virtual_ips:
|
||||||
|
{% set count = 1 %}
|
||||||
|
{%- for network in networks if network.vip|default(false) %}
|
||||||
|
{%- if network.name != 'External' %}
|
||||||
|
{{network.name_lower}}:
|
||||||
|
ip_address: {get_param: [NetVipMap, {get_param: {{network.name}}NetName}]}
|
||||||
|
index: {{count}}
|
||||||
|
{% set count = count + 1 %}
|
||||||
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
redis_vip: {get_param: RedisVirtualIP}
|
redis_vip: {get_param: RedisVirtualIP}
|
||||||
# public_virtual_ip and controller_virtual_ip are needed in
|
# public_virtual_ip and controller_virtual_ip are needed in
|
||||||
@ -193,6 +205,7 @@ resources:
|
|||||||
tripleo::haproxy::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
|
tripleo::haproxy::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
|
||||||
tripleo::keepalived::public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
|
tripleo::keepalived::public_virtual_ip: {get_param: [NetVipMap, {get_param: ExternalNetName}]}
|
||||||
tripleo::keepalived::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
|
tripleo::keepalived::controller_virtual_ip: {get_param: [NetVipMap, ctlplane]}
|
||||||
|
# TODO - remove virtual_ips when puppet-tripleo patch https://review.openstack.org/#/c/531037 merges
|
||||||
tripleo::keepalived::internal_api_virtual_ip: {get_param: [NetVipMap, {get_param: InternalApiNetName}]}
|
tripleo::keepalived::internal_api_virtual_ip: {get_param: [NetVipMap, {get_param: InternalApiNetName}]}
|
||||||
tripleo::keepalived::storage_virtual_ip: {get_param: [NetVipMap, {get_param: StorageNetName}]}
|
tripleo::keepalived::storage_virtual_ip: {get_param: [NetVipMap, {get_param: StorageNetName}]}
|
||||||
tripleo::keepalived::storage_mgmt_virtual_ip: {get_param: [NetVipMap, {get_param: StorageMgmtNetName}]}
|
tripleo::keepalived::storage_mgmt_virtual_ip: {get_param: [NetVipMap, {get_param: StorageMgmtNetName}]}
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- Added hiera for network_virtual_ips in vip_data to allow
|
||||||
|
composable networks to be configured in puppet.
|
Loading…
Reference in New Issue
Block a user