add galera cluster stt method

pull/28/head
Clément 2018-06-28 10:18:30 +02:00
parent f39d43d72a
commit f943a66108
2 changed files with 3 additions and 3 deletions

View File

@ -137,9 +137,10 @@ mariadb_key_ids: ['0xcbcb082a1bb943db', '0xf1656f24c74cd1d8']
mariadb_galera_resetup: false
mariadb_galera_members: []
mariadb_galera_primary_node: 'change_me' # See: https://github.com/ansible/ansible/issues/17453
mariadb_wsrep_stt_method: 'rsync'
# -------------------------------------
# Percona
# Percona
# -------------------------------------
mariadb_percona_repository: 'http://repo.percona.com/apt'
mariadb_use_percona_apt: false

View File

@ -12,8 +12,7 @@
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_address=gcomm://{{ mariadb_galera_members | join(",") }}
# TODO: https://mariadb.com/kb/en/mariadb/galera-cluster-system-variables/#wsrep_sst_method
wsrep_sst_method=rsync
wsrep_sst_method="{{ mariadb_wsrep_stt_method }}"
{% if mariadb_wsrep_cluster_name is defined %}
wsrep_cluster_name="{{ mariadb_wsrep_cluster_name }}"
{% endif %}