Skip to content

Commit

Permalink
Remove gcp_credentials_file variable at module level (#292)
Browse files Browse the repository at this point in the history
Remove this setting where not needed and let the deployment works without it.
  • Loading branch information
mpagot authored Nov 12, 2024
1 parent a752147 commit b96e30b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 34 deletions.
35 changes: 16 additions & 19 deletions terraform/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -138,23 +138,22 @@ module "common_variables" {
}

module "drbd_node" {
source = "./modules/drbd_node"
common_variables = module.common_variables.configuration
name = var.drbd_name
network_domain = var.drbd_network_domain == "" ? var.network_domain : var.drbd_network_domain
drbd_count = var.drbd_enabled == true ? 2 : 0
vm_size = var.drbd_machine_type
compute_zones = local.compute_zones
network_name = local.vpc_name
network_subnet_name = local.subnet_name
os_image = local.drbd_os_image
drbd_data_disk_size = var.drbd_data_disk_size
drbd_data_disk_type = var.drbd_data_disk_type
gcp_credentials_file = var.gcp_credentials_file
host_ips = local.drbd_ips
iscsi_srv_ip = module.iscsi_server.iscsisrv_ip
nfs_mounting_point = var.drbd_nfs_mounting_point
nfs_export_name = var.netweaver_sid
source = "./modules/drbd_node"
common_variables = module.common_variables.configuration
name = var.drbd_name
network_domain = var.drbd_network_domain == "" ? var.network_domain : var.drbd_network_domain
drbd_count = var.drbd_enabled == true ? 2 : 0
vm_size = var.drbd_machine_type
compute_zones = local.compute_zones
network_name = local.vpc_name
network_subnet_name = local.subnet_name
os_image = local.drbd_os_image
drbd_data_disk_size = var.drbd_data_disk_size
drbd_data_disk_type = var.drbd_data_disk_type
host_ips = local.drbd_ips
iscsi_srv_ip = module.iscsi_server.iscsisrv_ip
nfs_mounting_point = var.drbd_nfs_mounting_point
nfs_export_name = var.netweaver_sid
}

module "netweaver_node" {
Expand All @@ -169,7 +168,6 @@ module "netweaver_node" {
network_name = local.vpc_name
network_subnet_name = local.subnet_name
os_image = local.netweaver_os_image
gcp_credentials_file = var.gcp_credentials_file
host_ips = local.netweaver_ips
iscsi_srv_ip = module.iscsi_server.iscsisrv_ip
netweaver_software_bucket = var.netweaver_software_bucket
Expand All @@ -187,7 +185,6 @@ module "hana_node" {
network_name = local.vpc_name
network_subnet_name = local.subnet_name
os_image = local.hana_os_image
gcp_credentials_file = var.gcp_credentials_file
host_ips = local.hana_ips
iscsi_srv_ip = module.iscsi_server.iscsisrv_ip
hana_data_disk_type = var.hana_data_disk_type
Expand Down
5 changes: 0 additions & 5 deletions terraform/gcp/modules/drbd_node/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ variable "drbd_data_disk_type" {
default = "pd-standard"
}

variable "gcp_credentials_file" {
description = "Path to your local gcp credentials file"
type = string
}

variable "host_ips" {
description = "ip addresses to set to the nodes"
type = list(string)
Expand Down
5 changes: 0 additions & 5 deletions terraform/gcp/modules/hana_node/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ variable "network_domain" {
type = string
}

variable "gcp_credentials_file" {
description = "Path to your local gcp credentials file"
type = string
}

variable "host_ips" {
description = "ip addresses to set to the nodes"
type = list(string)
Expand Down
5 changes: 0 additions & 5 deletions terraform/gcp/modules/netweaver_node/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ variable "network_domain" {
type = string
}

variable "gcp_credentials_file" {
description = "Path to your local gcp credentials file"
type = string
}

variable "host_ips" {
description = "ip addresses to set to the nodes"
type = list(string)
Expand Down

0 comments on commit b96e30b

Please sign in to comment.