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 Nov 14, 2024
1 parent a83a130 commit dc9466d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/setup_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
galera_extra_wsrep_provider_options: >
{{
galera_extra_wsrep_provider_options | combine({
'ist.recv_addr': galera_ist_recv_addr + ":" + galera_ist_recv_addr_port,
'ist.recv_addr': galera_ist_recv_addr + ":" + galera_ist_recv_addr_port|string,
'ist.recv_bind': galera_ist_recv_bind
})
}}
Expand Down
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 dc9466d

Please sign in to comment.