mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-02-24 10:13:30 +07:00
🚀 Manage Galera
This commit is contained in:
committed by
Emilien M
parent
cdfd71ce76
commit
c32411c6e4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user