~damien/infrastructure

ref: c97e0e2b98e4206b8d30448fb5c97f8bd1fce7b8 infrastructure/terraform/outputs.tf -rw-r--r-- 695 bytes
c97e0e2b — Damien Radtke Prepare for 15.2 upgrade 10 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,
  ))
}