diff --git a/tmpl/redis-cluster.conf b/tmpl/redis-cluster.conf index 3ca1232..4589269 100644 --- a/tmpl/redis-cluster.conf +++ b/tmpl/redis-cluster.conf @@ -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