Merge pull request #16 from dhoppe/add_output

Add public IPv4 address of Traefik to output
This commit is contained in:
Karim Naufal 2022-01-13 20:29:50 +00:00 committed by GitHub
commit 6708ecb733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,7 @@
data "hcloud_load_balancer" "lb11" {
name = "traefik"
}
data "github_release" "hetzner_ccm" { data "github_release" "hetzner_ccm" {
repository = "hcloud-cloud-controller-manager" repository = "hcloud-cloud-controller-manager"
owner = "hetznercloud" owner = "hetznercloud"

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"
}