-
Notifications
You must be signed in to change notification settings - Fork 0
/
output.tf
71 lines (68 loc) · 2.37 KB
/
output.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
output "cluster-public-ips" {
value = {
for n in google_compute_instance.hashicorp_cluster_nodes : n.name => n.network_interface.0.access_config.0.nat_ip
}
description = "Control plane public IP addresses"
}
output "load-balancer-ip-address" {
value = google_compute_global_forwarding_rule.global_forwarding_rule.ip_address
description = "Load Balancer IP address"
}
output "hashicorp_endpoints" {
value = var.enable_nomad ? {
vault = "https://vault.${var.prefix}.${var.external_domain}"
consul = "https://consul.${var.prefix}.${var.external_domain}"
nomad = "https://nomad.${var.prefix}.${var.external_domain}"
} : {
vault = "https://vault.${var.prefix}.${var.external_domain}"
consul = "https://consul.${var.prefix}.${var.external_domain}"
}
description = "Hashicorp clusters endpoints"
}
output "worker_plane_service_account" {
value = [google_service_account.worker_plane_service_account.email]
description = "Worker plane service account"
}
output "PROJECT_PLATFORM_TFVAR" {
value = local.tfvars_platform
description = "Caravan Platform tfvars"
}
output "PROJECT_APPSUPP_TFVAR" {
value = local.tfvars_appsupport
description = "Caravan Application Support tfvars"
}
output "PROJECT_WORKLOAD_TFVAR" {
value = local.tfvars_workload
description = "Caravan Workload tfvars"
}
output "ca_certs" {
value = "${abspath(path.module)}/ca_certs.pem"
description = "Let's Encrypt staging CA certificates"
}
output "control_plane_role_name" {
value = local.control_plane_role_name
description = "Control plane role name"
}
output "worker_plane_role_name" {
value = local.worker_plane_role_name
description = "Worker plane role name"
}
output "control_plane_service_accounts" {
value = [google_service_account.control_plane_service_account.email]
description = "Control plane service accounts email list"
}
output "worker_plane_service_accounts" {
value = [google_service_account.worker_plane_service_account.email]
description = "Worker plane service accounts email list"
}
output "project_id" {
value = var.project_id
description = "GCP project ID"
}
output "csi_volumes" {
value = var.enable_nomad ? local.volumes_name_to_id : {}
}
output "csi_sa_key" {
value = var.enable_nomad ? tostring(google_service_account_key.pd_csi_sa_key[0].private_key) : ""
sensitive = true
}