From 2c7c8f568d0bf4eec8e5d0f4e5fd12ac4e8b6da4 Mon Sep 17 00:00:00 2001 From: Joshua Hoffmann Date: Thu, 24 Oct 2024 12:19:04 +0200 Subject: [PATCH] Templating: Only use wsrep_provider_options when galera_extra_wsrep_provider_options is defined --- templates/etc/mysql/conf.d/galera.cnf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/etc/mysql/conf.d/galera.cnf.j2 b/templates/etc/mysql/conf.d/galera.cnf.j2 index fd83374..585286f 100644 --- a/templates/etc/mysql/conf.d/galera.cnf.j2 +++ b/templates/etc/mysql/conf.d/galera.cnf.j2 @@ -72,7 +72,9 @@ wsrep_notify_cmd='{{ galera_monitor_script_path }}/{{ galera_monitor_script_name wsrep_node_address="{{ galera_wsrep_node_address }}" +{% if galera_extra_wsrep_provider_options is defined %} wsrep_provider_options = "{% for item in galera_extra_wsrep_provider_options %}{% set _key = item.split(': ')[0] %}{% set _val = galera_extra_wsrep_provider_options[_key] %}{{ _key }} = {{ _val }}{% if not loop.last %}; {% endif %}{% endfor %}" +{% endif %} [sst] {% if mariadb_tls_files and mariadb_tls_files|length == 3 and galera_sst_tls_enabled %}