File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
module "lb" {
2
- source = " git::https://github.com/appuio/terraform-modules.git//modules/vshn-lbaas-cloudscale?ref=v5 .1.0"
2
+ source = " git::https://github.com/appuio/terraform-modules.git//modules/vshn-lbaas-cloudscale?ref=v6 .1.0"
3
3
4
4
node_name_suffix = local. node_name_suffix
5
5
cluster_id = var. cluster_id
@@ -11,6 +11,7 @@ module "lb" {
11
11
control_vshn_net_token = var. control_vshn_net_token
12
12
team = var. team
13
13
additional_networks = var. additional_lb_networks
14
+ use_existing_vips = var. use_existing_vips
14
15
15
16
router_backends = module. infra . ip_addresses [* ]
16
17
bootstrap_node = var. bootstrap_count > 0 ? cidrhost (var. privnet_cidr , 10 ) : " "
Original file line number Diff line number Diff line change 1
1
output "dns_entries" {
2
2
value = templatefile (" ${ path . module } /templates/dns.zone" , {
3
3
" node_name_suffix" = local.node_name_suffix,
4
- " api_vip" = var.lb_count != 0 ? split (" /" , module. lb . api_vip [ 0 ] . network )[0 ] : " "
5
- " router_vip" = var.lb_count != 0 ? split (" /" , module. lb . router_vip [ 0 ] . network )[0 ] : " "
6
- " egress_vip" = var.lb_count != 0 ? split (" /" , module. lb . nat_vip [ 0 ] . network )[0 ] : " "
4
+ " api_vip" = var.lb_count != 0 ? split (" /" , module. lb . api_vip . network )[0 ] : " "
5
+ " router_vip" = var.lb_count != 0 ? split (" /" , module. lb . router_vip . network )[0 ] : " "
6
+ " egress_vip" = var.lb_count != 0 ? split (" /" , module. lb . nat_vip . network )[0 ] : " "
7
7
" internal_vip" = cidrhost (local. privnet_cidr , 100 ),
8
8
" masters" = module.master.ip_addresses,
9
9
" cluster_id" = var.cluster_id,
Original file line number Diff line number Diff line change @@ -169,3 +169,9 @@ variable "lb_enable_proxy_protocol" {
169
169
description = " Enable the PROXY protocol on the loadbalancers. WARNING: Connections will fail until you enable the same on the OpenShift router as well"
170
170
default = false
171
171
}
172
+
173
+ variable "use_existing_vips" {
174
+ type = bool
175
+ description = " Use existing floating IPs for api_vip, router_vip and nat_vip. Manually set the reverse DNS info, so the correct data source is found."
176
+ default = false
177
+ }
You can’t perform that action at this time.
0 commit comments