-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprotocol_gateways.tf
102 lines (97 loc) · 6.27 KB
/
protocol_gateways.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
resource "time_sleep" "wait_120_seconds" {
create_duration = "120s"
depends_on = [google_cloudfunctions2_function.cloud_internal_function, google_cloud_run_v2_service.cloud_internal]
}
module "nfs_protocol_gateways" {
count = var.nfs_protocol_gateways_number > 0 ? 1 : 0
source = "./modules/protocol_gateways"
subnets_list = local.subnets_name
zone = var.zone
project_id = var.project_id
region = var.region
source_image_id = var.source_image_id
gateways_number = var.nfs_protocol_gateways_number
gateways_name = "${var.prefix}-${var.cluster_name}-nfs-protocol-gateway"
protocol = "NFS"
secondary_ips_per_nic = var.nfs_protocol_gateway_secondary_ips_per_nic
machine_type = var.nfs_protocol_gateway_machine_type
yum_repository_appstream_url = var.yum_repository_appstream_url
yum_repository_baseos_url = var.yum_repository_baseos_url
sa_email = local.sa_email
assign_public_ip = local.assign_public_ip
disk_size = var.nfs_protocol_gateway_disk_size
frontend_container_cores_num = var.nfs_protocol_gateway_fe_cores_num
proxy_url = var.proxy_url
setup_protocol = var.nfs_setup_protocol
network_project_id = var.network_project_id
vm_username = var.vm_username
ssh_public_key = local.ssh_public_key
traces_per_frontend = var.traces_per_ionode
deploy_function_url = format("%s%s", local.internal_function_uri, "?action=deploy")
report_function_url = format("%s%s", local.internal_function_uri, "?action=report")
labels_map = var.labels_map
depends_on = [module.network, module.peering, module.shared_vpc_peering, time_sleep.wait_120_seconds, google_compute_forwarding_rule.google_compute_forwarding_rule, google_secret_manager_secret.secret_token, google_cloudfunctions2_function.cloud_internal_function, google_cloud_run_v2_service.cloud_internal]
}
module "smb_protocol_gateways" {
count = var.smb_protocol_gateways_number > 0 ? 1 : 0
source = "./modules/protocol_gateways"
subnets_list = local.subnets_name
zone = var.zone
project_id = var.project_id
region = var.region
source_image_id = var.source_image_id
gateways_number = var.smb_protocol_gateways_number
gateways_name = "${var.prefix}-${var.cluster_name}-smb-protocol-gateway"
protocol = "SMB"
setup_protocol = var.smb_setup_protocol
secondary_ips_per_nic = var.smb_protocol_gateway_secondary_ips_per_nic
machine_type = var.smb_protocol_gateway_machine_type
yum_repository_appstream_url = var.yum_repository_appstream_url
yum_repository_baseos_url = var.yum_repository_baseos_url
sa_email = local.sa_email
assign_public_ip = local.assign_public_ip
disk_size = var.smb_protocol_gateway_disk_size
frontend_container_cores_num = var.smb_protocol_gateway_fe_cores_num
proxy_url = var.proxy_url
smb_cluster_name = var.smb_cluster_name != "" ? var.smb_cluster_name : "${var.prefix}-${var.cluster_name}"
smb_domain_name = var.smb_domain_name
smbw_enabled = var.smbw_enabled
network_project_id = var.network_project_id
vm_username = var.vm_username
ssh_public_key = local.ssh_public_key
traces_per_frontend = var.traces_per_ionode
deploy_function_url = format("%s%s", local.internal_function_uri, "?action=deploy")
report_function_url = format("%s%s", local.internal_function_uri, "?action=report")
labels_map = var.labels_map
depends_on = [module.network, module.peering, module.shared_vpc_peering, time_sleep.wait_120_seconds, google_compute_forwarding_rule.google_compute_forwarding_rule, google_secret_manager_secret.secret_token, google_cloudfunctions2_function.cloud_internal_function, google_cloud_run_v2_service.cloud_internal]
}
module "s3_protocol_gateways" {
count = var.s3_protocol_gateways_number > 0 ? 1 : 0
source = "./modules/protocol_gateways"
subnets_list = local.subnets_name
zone = var.zone
project_id = var.project_id
region = var.region
source_image_id = var.source_image_id
gateways_number = var.s3_protocol_gateways_number
gateways_name = "${var.prefix}-${var.cluster_name}-s3-protocol-gateway"
protocol = "S3"
setup_protocol = var.s3_setup_protocol
secondary_ips_per_nic = 0
machine_type = var.s3_protocol_gateway_machine_type
yum_repository_appstream_url = var.yum_repository_appstream_url
yum_repository_baseos_url = var.yum_repository_baseos_url
sa_email = local.sa_email
assign_public_ip = local.assign_public_ip
disk_size = var.s3_protocol_gateway_disk_size
frontend_container_cores_num = var.s3_protocol_gateway_fe_cores_num
proxy_url = var.proxy_url
network_project_id = var.network_project_id
vm_username = var.vm_username
ssh_public_key = local.ssh_public_key
traces_per_frontend = var.traces_per_ionode
deploy_function_url = format("%s%s", local.internal_function_uri, "?action=deploy")
report_function_url = format("%s%s", local.internal_function_uri, "?action=report")
labels_map = var.labels_map
depends_on = [module.network, module.peering, module.shared_vpc_peering, time_sleep.wait_120_seconds, google_compute_forwarding_rule.google_compute_forwarding_rule, google_secret_manager_secret.secret_token, google_cloudfunctions2_function.cloud_internal_function, google_cloud_run_v2_service.cloud_internal]
}