Merge "update heartbeat vars to check response"

This commit is contained in:
Zuul 2018-05-12 19:55:34 +00:00 committed by Gerrit Code Review
commit 8ce8da08c8
2 changed files with 11 additions and 0 deletions

View File

@ -217,6 +217,8 @@ heartbeat.monitors:
#body:
# Expected response settings
{% if item.check_response is defined %}
check.response: {{ item.check_response }}
#check.response:
# Expected status code. If not configured or set to 0 any status code not
# being 404 is accepted.
@ -227,6 +229,7 @@ heartbeat.monitors:
# Required response contents.
#body:
{% endif %}
{% endif %}
{% endif %}
{% endif %}

View File

@ -89,6 +89,8 @@ heartbeat_services:
type: http
method: HEAD
path: "/"
check_response:
status: 300
- group: "{{ groups['heat_api'] | default([]) }}"
name: heat api
ports:
@ -96,6 +98,8 @@ heartbeat_services:
type: http
method: HEAD
path: "/"
check_response:
status: 300
- group: "{{ groups['keystone_all'] | default([]) }}"
name: keystone api
ports:
@ -104,6 +108,8 @@ heartbeat_services:
type: http
method: HEAD
path: "/"
check_response:
status: 300
- group: "{{ groups['neutron_server'] | default([]) }}"
name: neutron server
ports:
@ -146,6 +152,8 @@ heartbeat_services:
type: http
method: HEAD
path: "/"
check_response:
status: 300
- group: "{{ groups['horizon_all'] | default([]) }}"
name: horizon
ports: