Fixing galera configuration template

This commit is contained in:
Philippe Caseiro 2018-04-10 17:05:00 +02:00
parent 7dac154cef
commit edafc9a45e
1 changed files with 3 additions and 2 deletions

View File

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