clustercheck: use fqdn instead of ip for bind address

Clustercheck service is accessible via port 9200 on the Mysql network
(e.g. internal API). The bind address specified in the config currently
uses IP address. This breaks the OpenStack healthcheck because curl
refuses to fetch a URI with unquoted IPv6 address.

Use an fqdn as the bind address in the config to make sure the service
is reachable no matter the type of network used.

Change-Id: Ia41bf10ea65edd51cafee5416697628f972c693e
Closes-Bug: #1860124
(cherry picked from commit 643c4028b8)
This commit is contained in:
Damien Ciabrini 2020-01-17 13:59:20 +01:00 committed by Emilien Macchi
parent 077627f125
commit 82e2f9deac
1 changed files with 9 additions and 1 deletions

View File

@ -62,7 +62,15 @@ outputs:
description: Containerized service clustercheck using composable services.
value:
service_name: clustercheck
config_settings: {get_attr: [MysqlPuppetBase, role_data, config_settings]}
config_settings:
map_merge:
- get_attr: [MysqlPuppetBase, role_data, config_settings]
- tripleo::profile::pacemaker::clustercheck::bind_address:
str_replace:
template:
"%{hiera('fqdn_$NETWORK')}"
params:
$NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
# BEGIN DOCKER SETTINGS #
puppet_config:
config_volume: clustercheck