🚀 Manage Galera

This commit is contained in:
Emilien Mantel
2024-08-27 11:24:51 +02:00
committed by Emilien M
parent cdfd71ce76
commit c32411c6e4
12 changed files with 111 additions and 62 deletions

View File

@@ -12,6 +12,7 @@
# Global
wsrep_on = ON
wsrep_provider = /usr/lib/galera/libgalera_smm.so
wsrep_cluster_address = gcomm://{{ mariadb_galera_members | join(",") }}
wsrep_sst_method = "{{ mariadb_wsrep_sst_method }}"
{% if mariadb_wsrep_cluster_name is defined %}
@@ -19,7 +20,7 @@ wsrep_cluster_name = "{{ mariadb_wsrep_cluster_name }}"
{% endif %}
# Node Configuration
wsrep_node_address = "{{ mariadb_wsrep_node_address | default(ansible_default_ipv4.address if ansible_default_ipv4 is defined else '127.0.0.1') }}"
wsrep_node_address = "{{ mariadb_wsrep_node_address }}"
wsrep_node_name = "{{ mariadb_wsrep_node_name | default(ansible_fqdn) }}"
# Deps