# Galera-related settings
#
[mysqld]
binlog_format = row
default_storage_engine = InnoDB
innodb_autoinc_lock_mode = 2
bind-address = {{ mariadb_bind_address }}

# Galera Provider Configuration
wsrep_on = ON
wsrep_provider = {{ galera_wsrep_provider }}

# Galera Cluster Configuration 
wsrep_cluster_name = {{ galera_cluster_name }}
wsrep_cluster_address = "gcomm://{% for host in groups['db_servers'] %}{{ hostvars[host]['ansible_host'] }}{{ ',' if not loop.last }}{% endfor %}"

# Galera Synchronization Configuration 
wsrep_sst_method = rsync

# Galera Node Configuration 
wsrep_node_address = {{ hostvars[ansible_hostname]['ansible_host'] }}
wsrep_node_name = {{ ansible_hostname }}
