homelab/terraform/cloud/output.tf

14 lines
260 B
Terraform
Raw Normal View History

2022-06-19 14:04:32 +00:00
output "homelab_servers_status" {
value = {
2022-11-13 16:22:37 +00:00
for server in hcloud_server.HomeLab2 :
2022-06-19 14:04:32 +00:00
server.name => server.status
}
}
output "homelab_servers_ips" {
value = {
2022-11-13 16:22:37 +00:00
for server in hcloud_server.HomeLab2 :
2022-06-19 14:04:32 +00:00
server.name => server.ipv4_address
}
}