From 029ea741f7f58fdd3ab862925133b9dca86d2c5a Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 31 Jul 2023 15:00:05 +0200 Subject: [PATCH] Use proper galera port in configuration While _galera_port is defined and used for db_setup role, it's not in fact used in a connection string for oslo.db. Change-Id: I707dd7ccaa112cc11c3ee32c3fc8029352c8649a --- templates/barbican.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/barbican.conf.j2 b/templates/barbican.conf.j2 index 89d8012..1eae1fa 100644 --- a/templates/barbican.conf.j2 +++ b/templates/barbican.conf.j2 @@ -12,7 +12,7 @@ debug = {{ debug }} # communicate back with this service. host_href = {{ barbican_service_publicurl }} -sql_connection = mysql+pymysql://{{ barbican_galera_user }}:{{ barbican_galera_password }}@{{ barbican_galera_address }}/{{ barbican_galera_database }}?charset=utf8{% if barbican_galera_use_ssl | bool %}&ssl_verify_cert=true{% if barbican_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ barbican_galera_ssl_ca_cert }}{% endif %}{% endif +%} +sql_connection = mysql+pymysql://{{ barbican_galera_user }}:{{ barbican_galera_password }}@{{ barbican_galera_address }}:{{ barbican_galera_port }}/{{ barbican_galera_database }}?charset=utf8{% if barbican_galera_use_ssl | bool %}&ssl_verify_cert=true{% if barbican_galera_ssl_ca_cert | length > 0 %}&ssl_ca={{ barbican_galera_ssl_ca_cert }}{% endif %}{% endif +%} sql_pool_max_overflow = {{ barbican_db_max_overflow }} sql_pool_size = {{ barbican_db_max_pool_size }} sql_idle_timeout = {{ barbican_db_connection_recycle_time }}