58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
heat_template_version: 2015-10-15
|
|
|
|
description: A Listener and a pool for a Load Balancer
|
|
|
|
parameters:
|
|
lb_port:
|
|
type: number
|
|
default: 80
|
|
description: Port used by the listener
|
|
|
|
lb_protocol:
|
|
type: string
|
|
default: HTTP
|
|
description: Public protocol exposed by the listener
|
|
|
|
lb_algorithm:
|
|
type: string
|
|
default: ROUND_ROBIN
|
|
description: Load balancing algorithm
|
|
|
|
pool_protocol:
|
|
type: string
|
|
default: HTTP
|
|
description: Protocol used by the pool members
|
|
|
|
hm_type:
|
|
type: string
|
|
default: HTTP
|
|
description: Type of health-monitor
|
|
|
|
loadbalancer_id:
|
|
type: string
|
|
description: ID of the load balancer
|
|
|
|
resources:
|
|
pool:
|
|
type: OS::Octavia::Pool
|
|
properties:
|
|
lb_algorithm: { get_param: lb_algorithm }
|
|
protocol: { get_param: pool_protocol }
|
|
listener: { get_resource: listener }
|
|
|
|
listener:
|
|
type: OS::Octavia::Listener
|
|
properties:
|
|
loadbalancer: { get_param: loadbalancer_id }
|
|
protocol: { get_param: lb_protocol }
|
|
protocol_port: { get_param: lb_port }
|
|
|
|
outputs:
|
|
listener_id:
|
|
description: Listener ID
|
|
value: { get_resource: listener }
|
|
|
|
pool_id:
|
|
description: Pool ID
|
|
value: { get_resource: pool }
|