Use proper galera port in configuration

While <service>_galera_port is defined and used for db_setup
role, it's not in fact used in a connection string for oslo.db.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/888517
Change-Id: Idbd2bef71983f6fb3cc402563a166349621bf03c
This commit is contained in:
Dmitriy Rabotyagov 2023-07-31 15:08:24 +02:00 committed by Dmitriy Rabotyagov
parent e0e213efce
commit 2ec800116e

View File

@ -18,7 +18,7 @@ secure_proxy_ssl_header = {{ gnocchi_secure_proxy_ssl_header }}
{% endif %} {% endif %}
[indexer] [indexer]
url = mysql+pymysql://{{ gnocchi_galera_user }}:{{ gnocchi_container_mysql_password }}@{{ gnocchi_galera_address }}/{{ gnocchi_galera_database }}?charset=utf8{% if gnocchi_galera_use_ssl | bool %}&ssl_verify_cert=true{% if gnocchi_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ gnocchi_galera_ssl_ca_cert }}{% endif %}{% endif %} url = mysql+pymysql://{{ gnocchi_galera_user }}:{{ gnocchi_container_mysql_password }}@{{ gnocchi_galera_address }}:{{ gnocchi_galera_port }}/{{ gnocchi_galera_database }}?charset=utf8{% if gnocchi_galera_use_ssl | bool %}&ssl_verify_cert=true{% if gnocchi_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ gnocchi_galera_ssl_ca_cert }}{% endif %}{% endif %}
{% if gnocchi_auth_mode == "keystone" %} {% if gnocchi_auth_mode == "keystone" %}
[keystone_authtoken] [keystone_authtoken]