Subnet setup order fix & Number of master nodes syntax fix (#9159)

* Subnet setup order fix & Number of master nodes syntax fix

* Mistake fix!

* Formatting
This commit is contained in:
Robin Ramquist 2022-08-18 09:56:43 +02:00 committed by GitHub
parent 49d869f662
commit f4daf5856e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,6 +96,10 @@ module "compute" {
network_router_id = module.network.router_id
network_id = module.network.network_id
use_existing_network = var.use_existing_network
depends_on = [
module.network.subnet_id
]
}
output "private_subnet_id" {
@ -111,7 +115,7 @@ output "router_id" {
}
output "k8s_master_fips" {
value = concat(module.ips.k8s_master_fips, module.ips.k8s_master_no_etcd_fips)
value = var.number_of_k8s_masters + var.number_of_k8s_masters_no_etcd > 0 ? concat(module.ips.k8s_master_fips, module.ips.k8s_master_no_etcd_fips) : [for key, value in module.ips.k8s_masters_fips : value.address]
}
output "k8s_node_fips" {