Skip to content

Commit

Permalink
working now
Browse files Browse the repository at this point in the history
  • Loading branch information
jvallexm committed Mar 31, 2022
1 parent 8e06cef commit 9eae185
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
19 changes: 19 additions & 0 deletions example.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
ibmcloud_api_key = ""
TF_VERSION = "1.0"
prefix = "ez-multizone-roks"
region = "us-south"
resource_group = "asset-development"
tags = ["ez-vpc", "multizone-vpc"]
use_public_gateways = true
allow_inbound_traffic = true
classic_access = false
object_storage_name = "ez-cluster-vpc-cos"
create_new_cos_instance = true
object_storage_plan = "standard"
roks_cluster_version = "default"
machine_type = "bx2.4x16"
workers_per_zone = 2
disable_public_service_endpoint = true
entitlement = "cloud_pak"
wait_till = "IngressReady"
override = false
19 changes: 11 additions & 8 deletions ez_vpc_cluster/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,11 @@ locals {
}

##############################################################################


}

override_cluster = lookup(local.override, "cluster", {})

env = {
prefix = lookup(local.override, "prefix", var.prefix)
Expand All @@ -184,14 +187,14 @@ locals {
vpn_gateways = lookup(local.override, "vpn_gateways", [])
}
cluster = {
name = lookup(local.override, "name", local.config.cluster.name)
subnets = lookup(local.override, "cluster_subnets", local.config.cluster.subnets)
kube_version = lookup(local.override, "kube_version", local.config.cluster.kube_version)
entitlement = lookup(local.override, "entitlement", local.config.cluster.entitlement)
wait_till = lookup(local.override, "wait_till", local.config.cluster.wait_till)
machine_type = lookup(local.override, "machine_type", local.config.cluster.machine_type)
workers_per_zone = lookup(local.override, "workers_per_zone", local.config.cluster.workers_per_zone)
disable_public_service_endpoint = lookup(local.override, "disable_public_service_endpoint", local.config.cluster.disable_public_service_endpoint)
name = lookup(local.override_cluster, "name", local.config.cluster.name)
subnets = lookup(local.override_cluster, "subnets", local.config.cluster.subnets)
kube_version = lookup(local.override_cluster, "kube_version", local.config.cluster.kube_version)
entitlement = lookup(local.override_cluster, "entitlement", local.config.cluster.entitlement)
wait_till = lookup(local.override_cluster, "wait_till", local.config.cluster.wait_till)
machine_type = lookup(local.override_cluster, "machine_type", local.config.cluster.machine_type)
workers_per_zone = lookup(local.override_cluster, "workers_per_zone", local.config.cluster.workers_per_zone)
disable_public_service_endpoint = lookup(local.override_cluster, "disable_public_service_endpoint", local.config.cluster.disable_public_service_endpoint)
}
}

Expand Down

0 comments on commit 9eae185

Please sign in to comment.