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

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

* Mistake fix!

* Formatting
pull/9191/head
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
1 changed files with 5 additions and 1 deletions

View File

@ -96,6 +96,10 @@ module "compute" {
network_router_id = module.network.router_id network_router_id = module.network.router_id
network_id = module.network.network_id network_id = module.network.network_id
use_existing_network = var.use_existing_network use_existing_network = var.use_existing_network
depends_on = [
module.network.subnet_id
]
} }
output "private_subnet_id" { output "private_subnet_id" {
@ -111,7 +115,7 @@ output "router_id" {
} }
output "k8s_master_fips" { 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" { output "k8s_node_fips" {