Skip to content

Commit

Permalink
Merge pull request #4 from smasset-orange/feature/more-outputs
Browse files Browse the repository at this point in the history
Added more outputs
  • Loading branch information
vlandemaine-orange authored Feb 21, 2022
2 parents f19fad4 + 1b9fb54 commit dc39edc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
output "id" {
description = "The LB ID"
value = flexibleengine_lb_loadbalancer_v2.loadbalancer.id
}

output "public_ip" {
description = "The LB public IP"
value = var.bind_eip ? var.eip_addr == null ? flexibleengine_networking_floatingip_v2.loadbalancer_eip[0].address : var.eip_addr : null
Expand All @@ -7,3 +12,8 @@ output "private_ip" {
description = "The LB private IP"
value = flexibleengine_lb_loadbalancer_v2.loadbalancer.vip_address
}

output "pools" {
description = "The LB pools"
value = [for pool in flexibleengine_lb_pool_v2.pools : { id = pool.id, name = pool.name }]
}

0 comments on commit dc39edc

Please sign in to comment.