-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathoutput.tf
54 lines (45 loc) · 1.48 KB
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
output "loadbalancer_id" {
description = "Load balancer ID"
value = openstack_lb_loadbalancer_v2.loadbalancer.id
}
output "loadbalancer_ip" {
description = "Load balancer IP address"
value = openstack_lb_loadbalancer_v2.loadbalancer.vip_address
}
output "loadbalancer_vip_port_id" {
description = "The Port ID of the Load Balancer IP"
value = openstack_lb_loadbalancer_v2.loadbalancer.vip_port_id
}
output "loadbalancer_name" {
description = "Human-readable name for the Loadbalancer"
value = openstack_lb_loadbalancer_v2.loadbalancer.name
}
output "listener_id" {
description = "Listener ID"
value = openstack_lb_listener_v2.listener.id
}
output "listener_protocol" {
description = "Listener protocol"
value = openstack_lb_listener_v2.listener.protocol
}
output "listener_protocol_port" {
description = "The port on which to listen for client traffic"
value = openstack_lb_listener_v2.listener.protocol_port
}
output "lb_pool_id" {
description = "Load balancer pool ID"
value = openstack_lb_pool_v2.lb_pool.id
}
output "member_port" {
description = "The port on which to listen for client traffic"
value = join(",",
distinct([for member in openstack_lb_member_v2.member : member.protocol_port])
)
}
output "member_address" {
description = "The IP address of the member to receive traffic from the load balancer"
value = join(",",
[for member in openstack_lb_member_v2.member :
member.address]
)
}