forked from weka/terraform-gcp-weka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clients.tf
26 lines (26 loc) · 1.38 KB
/
clients.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
module "clients" {
count = var.clients_number > 0 ? 1 : 0
source = "./modules/clients"
clients_number = var.clients_number
clients_use_dpdk = var.clients_use_dpdk
yum_repo_server = var.yum_repo_server
clients_name = "${var.prefix}-${var.cluster_name}-client"
frontend_container_cores_num = var.clients_use_dpdk ? var.client_frontend_cores : 1
machine_type = var.client_instance_type
backend_lb_ip = google_compute_forwarding_rule.google_compute_forwarding_rule.ip_address
assign_public_ip = local.assign_public_ip
project_id = var.project_id
region = var.region
sa_email = local.sa_email
source_image_id = var.client_source_image_id
subnets_list = local.subnets_name
network_project_id = var.network_project_id
zone = var.zone
vm_username = var.vm_username
ssh_public_key = local.ssh_public_key
nic_type = var.client_nic_type
depends_on = [
google_compute_forwarding_rule.google_compute_forwarding_rule, google_workflows_workflow.scale_up,
google_cloudfunctions2_function.cloud_internal_function, module.shared_vpc_peering, module.peering
]
}