Skip to content

Commit

Permalink
Merge pull request #2 from smasset-orange/feature/outputs
Browse files Browse the repository at this point in the history
Added public/private LB IPs to module outputs
  • Loading branch information
vlandemaine-orange authored Feb 16, 2022
2 parents 827ad11 + c86d828 commit 569d753
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,7 @@ inputs = {

## Outputs

| Name | Description
|------------|------------
| public_ip | The LB public IP
| private_ip | The LB private IP
9 changes: 9 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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
}

output "private_ip" {
description = "The LB private IP"
value = flexibleengine_lb_loadbalancer_v2.loadbalancer.vip_address
}

0 comments on commit 569d753

Please sign in to comment.