eole-redis/tmpl/redis-cluster.conf

17 lines
863 B
Plaintext
Raw Permalink Normal View History

2018-05-11 15:38:13 +02:00
%if %%getVar('activer_redis','non') == 'oui' and %%getVar('redisRole','Node') == 'Leader'
%%redisInstanceName:%%adresse_ip_eth0:%%{redisPort}:master::Leader:
%if %%getVar('redisSlaveInstance','non') == 'oui'
%%redisSlaveInstanceName:%%adresse_ip_eth0:%%{redisPortSlave}:slave:%%{redisSlaveInstanceMaster}:Node:
%end if
2018-05-14 14:50:56 +02:00
%for %%node in %%getVar('rdClMember',[])
%if %%node.rdClMemberRole == 'master'
%%{node}:%%{node.rdClMemberIP}:%%{node.rdClMemberPort}:%%{node.rdClMemberRole}::Node:
2018-05-14 14:50:56 +02:00
%else
%%{node}:%%{node.rdClMemberIP}:%%{node.rdClMemberPort}:%%{node.rdClMemberRole}:%%{node.rdClMemberMaster}:Node:
%end if
%if %%node.rdClMemberAsSlave == 'oui'
%%{node.rdClMemberSlaveName}:%%{node.rdClMemberSlaveIP}:%%{node.rdClMemberSlavePort}:%%{node.rdClMemberSlaveRole}:%%{node.rdClMemberSlaveMaster}:Node:
2018-05-14 14:50:56 +02:00
%end if
%end for
2018-05-11 15:26:51 +02:00
%end if