Skip to content

Commit c18ea5c

Browse files
authored
Merge pull request #273 from lebauce/dedicated-router-ip
Return non empty router_ip when using dedicated loadbalancer
2 parents a861d10 + b93bb05 commit c18ea5c

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
@@ -476,6 +476,7 @@ resources:
476476
fixed_network: {get_resource: fixed_network}
477477
fixed_subnet: {get_resource: fixed_subnet}
478478
external_network: {get_param: external_network}
479+
loadbalancer_ip: {get_attr: [lb_floating_ip, floating_ip_address]}
479480

480481
# VM Host definitions
481482
bastion_host:

0 commit comments

Comments
 (0)