Adding the Leader to the cluster.conf

This commit is contained in:
Philippe Caseiro 2018-05-11 15:38:13 +02:00
parent 325e51b0cf
commit 9ad47896a5

View File

@ -1,4 +1,6 @@
%if %%getVar('active_redis','non') == 'oui' and %%getVar('redisRole','Node') == 'Leader'
%for %%node in %%getvar('rdMemberIP',[])
%if %%getVar('activer_redis','non') == 'oui' and %%getVar('redisRole','Node') == 'Leader'
127.0.0.1:%%{redisPort}:master::
%for %%node in %%getVar('rdClMemberIP',[])
%%{node}:%%{node.rdClMemberPort}:%%{node.rdClMemberRole}:%%{node.rdClMemberMaster}
%end for
%end if