From a4444ce2330596af3bd7c36950dbe2711a2d446d Mon Sep 17 00:00:00 2001 From: Dennis Hoppe Date: Thu, 13 Jan 2022 14:56:27 +0100 Subject: [PATCH] Add public IPv4 address of Traefik to output --- data.tf | 3 +++ output.tf | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 data.tf diff --git a/data.tf b/data.tf new file mode 100644 index 0000000..e9448dc --- /dev/null +++ b/data.tf @@ -0,0 +1,3 @@ +data "hcloud_load_balancer" "lb11" { + name = "traefik" +} 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" +}