Fixing galera configuration template

This commit is contained in:
Philippe Caseiro 2018-04-10 17:05:00 +02:00
parent 7dac154cef
commit edafc9a45e

View File

@ -8,11 +8,12 @@ wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
# Galera Cluster Configuration
wsrep_cluster_name="%%dbClusterName"
%set %%nodeIP = %%getVar('adresse_ip_%%ifDBCluster', '')
%set %%nodeIP = %%getVar('adresse_ip_' + %%ifDBCluster, '')
wsrep_cluster_address="gcomm://%%nodeIP%slurp
%for %%node in %%dbClusterMember
,%%node.dbClusterMemberIP %slurp
,%%node.dbClusterMemberIP%slurp
%end for
"
# Galera Synchronization Configuration