Add public IPv4 address of Traefik to output

This commit is contained in:
Dennis Hoppe 2022-01-13 14:56:27 +01:00
parent 5e9ddc16ff
commit a4444ce233
No known key found for this signature in database
GPG Key ID: F0DCF4EC6237CDD2
2 changed files with 8 additions and 0 deletions

3
data.tf Normal file
View File

@ -0,0 +1,3 @@
data "hcloud_load_balancer" "lb11" {
name = "traefik"
}

View File

@ -7,3 +7,8 @@ output "agents_public_ip" {
value = hcloud_server.agents.*.ipv4_address value = hcloud_server.agents.*.ipv4_address
description = "The public IP addresses of the agent server." description = "The public IP addresses of the agent server."
} }
output "traefik_public_ip" {
value = data.hcloud_load_balancer.lb11.ipv4
description = "IPv4 Address of the Load Balancer"
}