diff --git a/dicos/90_redis.xml b/dicos/90_redis.xml index 61de283..5d1b8f7 100644 --- a/dicos/90_redis.xml +++ b/dicos/90_redis.xml @@ -3,6 +3,7 @@ + redis-server redisPort @@ -70,6 +71,7 @@ redisMasterIP redisMasterPort redisMasterPassword + redisCl @@ -78,6 +80,11 @@ redisMasterPort + + Node + redisCl + + master rdClMemberMaster diff --git a/tmpl/redis-cluster.conf b/tmpl/redis-cluster.conf new file mode 100644 index 0000000..3ca1232 --- /dev/null +++ b/tmpl/redis-cluster.conf @@ -0,0 +1,4 @@ +%if %%getVar('active_redis','non') == 'oui' and %%getVar('redisRole','Node') == 'Leader' +%for %%node in %%getvar('rdMemberIP',[]) +%%{node}:%%{node.rdClMemberPort}:%%{node.rdClMemberRole}:%%{node.rdClMemberMaster} +%end if