From 9ad47896a530b996b2b2a77fa56659d01d86bbb9 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Fri, 11 May 2018 15:38:13 +0200 Subject: [PATCH] Adding the Leader to the cluster.conf --- tmpl/redis-cluster.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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