eole-redis/tmpl/redis-cluster.conf

11 lines
451 B
Plaintext
Raw Normal View History

2018-05-11 15:38:13 +02:00
%if %%getVar('activer_redis','non') == 'oui' and %%getVar('redisRole','Node') == 'Leader'
2018-05-11 17:03:20 +02:00
Leader:127.0.0.1:%%{redisPort}:master::
2018-05-14 14:50:56 +02:00
%for %%node in %%getVar('rdClMember',[])
%if %%node.rdClMemberRole == 'master'
%%{node}:%%{node.rdClMemberIP}:%%{node.rdClMemberPort}:%%{node.rdClMemberRole}::
%else
2018-05-11 17:03:20 +02:00
%%{node}:%%{node.rdClMemberIP}:%%{node.rdClMemberPort}:%%{node.rdClMemberRole}:%%{node.rdClMemberMaster}:
2018-05-14 14:50:56 +02:00
%end if
%end for
2018-05-11 15:26:51 +02:00
%end if