~damien/infrastructure

ref: b481ba41c3bbdf8d4f9c0393f87b495160adc414 infrastructure/terraform/outputs.tf -rw-r--r-- 695 bytes
b481ba41 — Damien Radtke Suppress cluster env output if non-interactive 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
output "consul_server_ips" {
  value = [for ip in module.consul-server.instances[*].ipv6 : split("/", ip)[0]]
}

output "nomad_server_ips" {
  value = [for ip in module.nomad-server.instances[*].ipv6 : split("/", ip)[0]]
}

output "vault_server_ips" {
  value = [for ip in module.vault-server.instances[*].ipv6 : split("/", ip)[0]]
}

output "nomad_client_ips" {
  /*
	value = concat(
		[for ip in module.nomad-client.instances[*].ipv6: split("/", ip)[0]],
		[for ip in module.nomad-client-load-balancer.instances[*].ipv6: split("/", ip)[0]],
	)
	*/
  value = flatten(concat(
    module.nomad-client.instances[*].ip_address,
    module.nomad-client-load-balancer.instances[*].ip_address,
  ))
}