|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
heat_template_version: 2015-10-15 |
|
|
|
|
heat_template_version: newton |
|
|
|
|
|
|
|
|
|
description: A pool for a Load Balancer |
|
|
|
|
|
|
|
|
@ -17,7 +17,11 @@ parameters:
|
|
|
|
|
type: string |
|
|
|
|
description: ID of the listener |
|
|
|
|
|
|
|
|
|
# healthmonitor params |
|
|
|
|
# Health monitor parameters |
|
|
|
|
has_monitor: |
|
|
|
|
type: boolean |
|
|
|
|
description: whenever to create the health monitor |
|
|
|
|
|
|
|
|
|
hm_delay: |
|
|
|
|
type: number |
|
|
|
|
default: 10 |
|
|
|
@ -43,6 +47,12 @@ parameters:
|
|
|
|
|
default: HTTP |
|
|
|
|
description: Type of health-monitor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
conditions: |
|
|
|
|
has_monitor: |
|
|
|
|
get_param: has_monitor |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
resources: |
|
|
|
|
pool: |
|
|
|
|
type: OS::Octavia::Pool |
|
|
|
@ -53,6 +63,7 @@ resources:
|
|
|
|
|
|
|
|
|
|
monitor: |
|
|
|
|
type: OS::Octavia::HealthMonitor |
|
|
|
|
condition: has_monitor |
|
|
|
|
properties: |
|
|
|
|
delay: { get_param: hm_delay } |
|
|
|
|
type: { get_param: hm_type } |
|
|
|
@ -68,3 +79,4 @@ outputs:
|
|
|
|
|
monitor_id: |
|
|
|
|
description: Healthmonitor ID |
|
|
|
|
value: { get_resource: monitor } |
|
|
|
|
condition: has_monitor |
|
|
|
|