Skip to content

Commit 553b2f4

Browse files
authored
Add multi-az support for GCP deployments (#114)
Signed-off-by: Jim Enright <[email protected]>
1 parent 5365289 commit 553b2f4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

modules/terraform-cdp-deploy/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ module "cdp_on_gcp" {
207207
datalake_scale = local.datalake_scale
208208
datalake_version = var.datalake_version
209209
enable_raz = var.enable_raz
210+
multiaz = var.multiaz
210211
enable_ccm_tunnel = var.enable_ccm_tunnel
211212

212213
freeipa_instances = var.freeipa_instances

modules/terraform-cdp-deploy/modules/gcp/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ resource "cdp_environments_gcp_environment" "cdp_env" {
5858
instance_count_by_group = var.freeipa_instances
5959
instance_type = var.freeipa_instance_type
6060
recipes = var.freeipa_recipes
61+
multi_az = var.multiaz
6162
}
6263

6364
workload_analytics = var.workload_analytics
@@ -127,6 +128,7 @@ resource "cdp_datalake_gcp_datalake" "cdp_datalake" {
127128
image = var.datalake_image
128129
java_version = var.datalake_java_version
129130
recipes = var.datalake_recipes
131+
multi_az = var.datalake_scale == "LIGHT_DUTY" ? null : var.multiaz
130132

131133
polling_options = {
132134
async = var.datalake_async_creation

modules/terraform-cdp-deploy/modules/gcp/variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ variable "enable_raz" {
8282

8383
}
8484

85+
variable "multiaz" {
86+
type = bool
87+
88+
description = "Flag to specify that the FreeIPA and DataLake instances will be deployed across multi-availability zones"
89+
90+
}
91+
8592
variable "environment_async_creation" {
8693
type = bool
8794

0 commit comments

Comments
 (0)