Fix sahara backend URL

Sahara does not support healthcheck with api-paste out of the box.

Until we implement support for it, we should fix backend

Change-Id: I423204b1955b5fd5e61d16beb96c492136a2957a
(cherry picked from commit d43182f0a0)
This commit is contained in:
Dmitriy Rabotyagov 2021-05-18 18:00:23 +03:00 committed by Dmitriy Rabotyagov
parent 737be1ff91
commit 88f38ae02f
1 changed files with 3 additions and 1 deletions

View File

@ -225,7 +225,9 @@ haproxy_default_services:
haproxy_port: 8386
haproxy_balance_type: http
haproxy_backend_options:
- "httpchk GET /healthcheck HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
- "httpchk GET / HTTP/1.0\\r\\nUser-agent:\\ osa-haproxy-healthcheck"
haproxy_backend_httpcheck_options:
- "expect rstatus 300|200"
haproxy_service_enabled: "{{ groups['sahara_api'] is defined and groups['sahara_api'] | length > 0 }}"
- service:
haproxy_service_name: swift_proxy