~damien/infrastructure

ref: 586008a6c9edb6172083dac8b4f222970046477f infrastructure/terraform/outputs.tf -rw-r--r-- 689 bytes
586008a6 — Damien Radtke Small firewall updates 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,
  ))
}