From cd4257611d6847a887c00d84d38c718d19c3ed66 Mon Sep 17 00:00:00 2001 From: Annie Hedgpeth Date: Wed, 8 Nov 2023 16:30:33 -0700 Subject: [PATCH] fix active-active value --- main.tf | 2 +- variables.tf | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/main.tf b/main.tf index 2fdb37dc..7b5cde60 100644 --- a/main.tf +++ b/main.tf @@ -144,7 +144,7 @@ module "tfe_init_fdo" { distribution = var.distribution disk_path = var.disk_path disk_device_name = var.production_type == "disk" ? "disk/azure/scsi1/lun${var.vm_data_disk_lun}" : null - operational_mode = var.production_type + operational_mode = local.active_active ? "active-active" : var.production_type custom_image_tag = var.custom_image_tag enable_monitoring = var.enable_monitoring diff --git a/variables.tf b/variables.tf index 5a56faa6..18c7f09d 100644 --- a/variables.tf +++ b/variables.tf @@ -544,6 +544,18 @@ variable "redis_minimum_tls_version" { # VM # -- +variable "http_port" { + default = 80 + type = number + description = "(Optional if is_replicated_deployment is false) Port application listens on for HTTP. Default is 80." +} + +variable "https_port" { + default = 443 + type = number + description = "(Optional if is_replicated_deployment is false) Port application listens on for HTTPS. Default is 443." +} + variable "vm_node_count" { default = 2 type = number @@ -998,18 +1010,6 @@ variable "vm_key_secret" { # Proxy # ----- -variable "http_port" { - default = 80 - type = number - description = "(Optional if is_replicated_deployment is false) Port application listens on for HTTP. Default is 80." -} - -variable "https_port" { - default = 443 - type = number - description = "(Optional if is_replicated_deployment is false) Port application listens on for HTTPS. Default is 443." -} - variable "no_proxy" { type = list(string) description = "(Optional) List of IP addresses to not proxy"