Skip to content

Commit

Permalink
Templating: Only use wsrep_provider_options when galera_extra_wsrep_p…
Browse files Browse the repository at this point in the history
…rovider_options is defined
  • Loading branch information
andanotheruser committed Oct 24, 2024
1 parent a83a130 commit 2c7c8f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/etc/mysql/conf.d/galera.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 2c7c8f5

Please sign in to comment.