From 723dc30d8f605e2c10df12d96b4a49b23f7f3722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Hern=C3=A1ndez?= Date: Fri, 23 Feb 2024 17:13:27 +0100 Subject: [PATCH] add usage_reporting_opt_out variable --- main.tf | 1 + modules/networking/main.tf | 6 +++--- variables.tf | 6 ++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index d0904d88..231af552 100644 --- a/main.tf +++ b/main.tf @@ -113,6 +113,7 @@ module "runtime_container_engine_config" { count = var.is_replicated_deployment ? 0 : 1 license_reporting_opt_out = var.license_reporting_opt_out + usage_reporting_opt_out = var.usage_reporting_opt_out hostname = local.common_fqdn capacity_concurrency = var.capacity_concurrency capacity_cpu = var.capacity_cpu diff --git a/modules/networking/main.tf b/modules/networking/main.tf index 56181b8a..74f9e46c 100644 --- a/modules/networking/main.tf +++ b/modules/networking/main.tf @@ -99,8 +99,8 @@ resource "google_compute_global_address" "private_ip_address" { } resource "google_service_networking_connection" "private_vpc_connection" { - network = google_compute_network.tfe_vpc.self_link - service = "servicenetworking.googleapis.com" - deletion_policy = "ABANDON" + network = google_compute_network.tfe_vpc.self_link + service = "servicenetworking.googleapis.com" + deletion_policy = "ABANDON" reserved_peering_ranges = [google_compute_global_address.private_ip_address.name] } diff --git a/variables.tf b/variables.tf index efca6c8c..a142ae68 100644 --- a/variables.tf +++ b/variables.tf @@ -438,6 +438,12 @@ variable "license_reporting_opt_out" { description = "(Not needed if is_replicated_deployment is true) Whether to opt out of reporting licensing information to HashiCorp. Defaults to false." } +variable "usage_reporting_opt_out" { + default = false + type = bool + description = "(Not needed if is_replicated_deployment is true) Whether to opt out of reporting usage information to HashiCorp. Defaults to false." +} + variable "operational_mode" { default = "external" description = "A special string to control the operational mode of Terraform Enterprise. Valid values are: 'external' for External Services mode; 'disk' for Mounted Disk mode;."