diff --git a/data.tf b/data.tf index 99f6fe5..294b0e2 100644 --- a/data.tf +++ b/data.tf @@ -1,3 +1,7 @@ +data "hcloud_load_balancer" "lb11" { + name = "traefik" +} + data "github_release" "hetzner_ccm" { repository = "hcloud-cloud-controller-manager" owner = "hetznercloud" diff --git a/output.tf b/output.tf index 928445d..8198eca 100644 --- a/output.tf +++ b/output.tf @@ -7,3 +7,8 @@ output "agents_public_ip" { value = hcloud_server.agents.*.ipv4_address 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" +}