Skip to content

Commit

Permalink
remove unnecesary gcp_project_id in root module
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Hernández committed Nov 22, 2023
1 parent 84d4fab commit 6dec8e2
Show file tree
Hide file tree
Showing 18 changed files with 0 additions and 55 deletions.
1 change: 0 additions & 1 deletion examples/active-active-proxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ module "test_proxy" {
module "active_active_proxy" {
source = "../../"

gcp_project_id = var.gcp_project_id
ca_certificate_secret_id = var.ca_certificate_secret_id
distribution = "rhel"
dns_zone_name = var.dns_zone_name
Expand Down
1 change: 0 additions & 1 deletion examples/existing-network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module "secrets" {
module "existing_network" {
source = "../../"

gcp_project_id = var.gcp_project_id
distribution = "ubuntu"
dns_zone_name = var.dns_zone_name
existing_service_account_id = var.existing_service_account_id
Expand Down
5 changes: 0 additions & 5 deletions examples/existing-network/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "dns_zone_name" {
description = "The name of the DNS zone in which a record will be created."
type = string
Expand Down
1 change: 0 additions & 1 deletion examples/external-dns/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module "secrets" {
module "tfe" {
source = "../../"

gcp_project_id = var.gcp_project_id
distribution = "ubuntu"
dns_create_record = var.dns_create_record
dns_zone_name = var.dns_zone_name
Expand Down
5 changes: 0 additions & 5 deletions examples/external-dns/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "dns_zone_name" {
description = "The name of the DNS zone in which a record will be created."
type = string
Expand Down
1 change: 0 additions & 1 deletion examples/standalone-airgap-dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module "secrets" {
module "tfe" {
source = "../.."

gcp_project_id = var.gcp_project_id
airgap_url = var.airgap_url
tfe_license_bootstrap_airgap_package_path = "/var/lib/ptfe/ptfe.airgap"

Expand Down
5 changes: 0 additions & 5 deletions examples/standalone-airgap-dev/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "airgap_url" {
description = "The URL of the storage bucket object that comprises an airgap package."
type = string
Expand Down
1 change: 0 additions & 1 deletion examples/standalone-airgap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
module "tfe" {
source = "../../"

gcp_project_id = var.gcp_project_id
# Air-gap
existing_service_account_id = var.existing_service_account_id
tfe_license_bootstrap_airgap_package_path = "/var/lib/ptfe/ptfe.airgap"
Expand Down
5 changes: 0 additions & 5 deletions examples/standalone-airgap/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "dns_zone_name" {
description = "The name of the DNS zone in which a record will be created."
type = string
Expand Down
1 change: 0 additions & 1 deletion examples/standalone-mounted/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module "secrets" {
module "tfe" {
source = "../../"

gcp_project_id = var.gcp_project_id
distribution = "ubuntu"
dns_zone_name = var.dns_zone_name
existing_service_account_id = var.existing_service_account_id
Expand Down
5 changes: 0 additions & 5 deletions examples/standalone-mounted/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "dns_zone_name" {
description = "The name of the DNS zone in which a record will be created."
type = string
Expand Down
1 change: 0 additions & 1 deletion tests/private-active-active/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ module "secrets" {
module "tfe" {
source = "../.."

gcp_project_id = var.gcp_project_id
consolidated_services_enabled = var.consolidated_services_enabled
distribution = "rhel"
dns_zone_name = data.google_dns_managed_zone.main.name
Expand Down
1 change: 0 additions & 1 deletion tests/private-tcp-active-active/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module "secrets" {
module "tfe" {
source = "../.."

gcp_project_id = var.gcp_project_id
bypass_preflight_checks = true
consolidated_services_enabled = var.consolidated_services_enabled
distribution = "rhel"
Expand Down
5 changes: 0 additions & 5 deletions tests/public-active-active/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "consolidated_services_enabled" {
default = true
type = bool
Expand Down
5 changes: 0 additions & 5 deletions tests/standalone-external-rhel8-worker/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "consolidated_services_enabled" {
default = true
type = bool
Expand Down
1 change: 0 additions & 1 deletion tests/standalone-mounted-disk/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ resource "local_file" "private_key_pem" {

module "tfe" {
source = "../.."
gcp_project_id = var.gcp_project_id
consolidated_services_enabled = var.consolidated_services_enabled
disk_path = "/opt/hashicorp/data"
distribution = "ubuntu"
Expand Down
5 changes: 0 additions & 5 deletions tests/standalone-mounted-disk/variables.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "consolidated_services_enabled" {
default = true
type = bool
Expand Down
6 changes: 0 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

# GENERAL
# -------

variable "gcp_project_id" {
description = "GCP Project ID to deploy resources into."
type = string
}

variable "ca_certificate_secret_id" {
default = null
description = "The Secret Manager secret which comprises the Base64 encoded PEM certificate file for a Certificate Authority. The Terraform provider calls this value the secret_id and the GCP UI calls it the name."
Expand Down

0 comments on commit 6dec8e2

Please sign in to comment.