mirror of
https://github.com/2martens/terraform.git
synced 2026-10-17 13:36:51 +02:00
change: Add outputs for all worker nodes as well
This commit is contained in:
@@ -8,4 +8,16 @@ output "node_details" {
|
||||
ipv6 = instance.ipv6_address
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output "worker_node_details" {
|
||||
value = {
|
||||
for idx, instance in hcloud_server.worker_node :
|
||||
"worker-node-${idx}" => {
|
||||
id = instance.id
|
||||
name = instance.name
|
||||
ipv4 = instance.ipv4_address
|
||||
ipv6 = instance.ipv6_address
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,4 +9,8 @@
|
||||
|
||||
output "swarm_nodes" {
|
||||
value = module.test_swarm_cluster.node_details
|
||||
}
|
||||
|
||||
output "swarm_worker_nodes" {
|
||||
value = module.test_swarm_cluster.worker_node_details
|
||||
}
|
||||
Reference in New Issue
Block a user