Skip to content

Commit b93bb05

Browse files
committed
Return non empty router_ip when using dedicated loadbalancer
1 parent 3d6e5e0 commit b93bb05

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

ipfailover_keepalived.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ parameters:
2525
constraints:
2626
- custom_constraint: neutron.network
2727

28+
loadbalancer_ip:
29+
type: string
30+
2831
resources:
2932
router_vip_port:
3033
type: OS::Neutron::Port

ipfailover_none.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ parameters:
2525
constraints:
2626
- custom_constraint: neutron.network
2727

28+
loadbalancer_ip:
29+
type: string
30+
2831
outputs:
2932
router_ip:
3033
description: >
3134
The Openshift Router external IP
32-
value: ""
35+
value: {get_param: loadbalancer_ip}
3336

3437
router_vip:
3538
description: >

openshift.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ resources:
474474
fixed_network: {get_resource: fixed_network}
475475
fixed_subnet: {get_resource: fixed_subnet}
476476
external_network: {get_param: external_network}
477+
loadbalancer_ip: {get_attr: [lb_floating_ip, floating_ip_address]}
477478

478479
# VM Host definitions
479480
bastion_host:

0 commit comments

Comments
 (0)