Since I don't have multiple terraform steps anymore it simply doesn't make sense to me anymore to split all tasks into separate folders. Instead I try to be as clear as possible in the README to make it easy to follow the structure in the future without too much headache.
24 lines
492 B
HCL
24 lines
492 B
HCL
output "server_ips_v4" {
|
|
value = [for key, value in hcloud_server.server : value.ipv4_address]
|
|
}
|
|
|
|
output "server_ips_v6" {
|
|
value = [for key, value in hcloud_server.server : value.ipv6_address]
|
|
}
|
|
|
|
output "agent_ips_v4" {
|
|
value = flatten([for key, value in hcloud_server.agent : value.network.*.ip])
|
|
}
|
|
|
|
output "private_network_cidr" {
|
|
value = local.network
|
|
}
|
|
|
|
output "private_network_nat" {
|
|
value = cidrhost(local.subnet_eu_central, 1)
|
|
}
|
|
|
|
output "ssh_port" {
|
|
value = var.ssh_port
|
|
}
|