Skip to content

Commit cc1aadf

Browse files
committed
feat: (PSKD-709) Updates for NFS mount
1 parent 86c9c73 commit cc1aadf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

modules/google_netapp/main.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ resource "google_service_networking_connection" "default" {
2020
service = "netapp.servicenetworking.goog"
2121
reserved_peering_ranges = [google_compute_global_address.private_ip_alloc.name]
2222

23-
depends_on = [
24-
google_compute_global_address.private_ip_alloc
25-
]
23+
deletion_policy = "ABANDON"
2624
}
2725

2826
# Modify the PSA Connection to allow import/export of custom routes
@@ -64,6 +62,7 @@ resource "google_netapp_volume" "netapp-nfs-volume" {
6462
}
6563

6664
depends_on = [
67-
google_netapp_storage_pool.netapp-tf-pool
65+
google_netapp_storage_pool.netapp-tf-pool,
66+
google_service_networking_connection.default
6867
]
6968
}

vms.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ locals {
1010
rwx_filestore_path = (var.storage_type == "none"
1111
? ""
1212
: var.storage_type == "ha" && local.storage_type_backend == "filestore" ? "/${google_filestore_instance.rwx[0].file_shares[0].name}"
13-
: var.storage_type == "ha" && local.storage_type_backend == "netapp" ? "/${module.google_netapp[0].mountpath}" : "/export"
13+
: var.storage_type == "ha" && local.storage_type_backend == "netapp" ? module.google_netapp[0].mountpath : "/export"
1414
)
1515
protocol_version = var.storage_type == "ha" && local.storage_type_backend == "netapp" ? split("V", var.netapp_protocols[0])[1] == "4" ? "4.1" : "3" : "3"
1616

0 commit comments

Comments
 (0)