Adding cluster.conf template
This commit is contained in:
parent
935aa81b70
commit
9af98166ba
|
@ -3,6 +3,7 @@
|
||||||
<files>
|
<files>
|
||||||
<!-- System configuration -->
|
<!-- System configuration -->
|
||||||
<file filelist='redis' name='/etc/redis/redis.conf' mkdir='True' rm='True'/>
|
<file filelist='redis' name='/etc/redis/redis.conf' mkdir='True' rm='True'/>
|
||||||
|
<file filelist='redisCl' name='/etc/redis/cluster.conf' source='redis-cluster.conf' mkdir='True' rm='True'/>
|
||||||
<service servicelist="svredis">redis-server</service>
|
<service servicelist="svredis">redis-server</service>
|
||||||
<service_access service='redis-server'>
|
<service_access service='redis-server'>
|
||||||
<port service_accesslist='saRedis' protocol='tcp' port_type='SymLinkOption'>redisPort</port>
|
<port service_accesslist='saRedis' protocol='tcp' port_type='SymLinkOption'>redisPort</port>
|
||||||
|
@ -70,6 +71,7 @@
|
||||||
<target type='variable'>redisMasterIP</target>
|
<target type='variable'>redisMasterIP</target>
|
||||||
<target type='variable'>redisMasterPort</target>
|
<target type='variable'>redisMasterPort</target>
|
||||||
<target type='variable'>redisMasterPassword</target>
|
<target type='variable'>redisMasterPassword</target>
|
||||||
|
<target type='filelist'>redisCl</target>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
<condition name='disabled_if_in' source='redisRole'>
|
<condition name='disabled_if_in' source='redisRole'>
|
||||||
|
@ -78,6 +80,11 @@
|
||||||
<target type='variable'>redisMasterPort</target>
|
<target type='variable'>redisMasterPort</target>
|
||||||
</condition>
|
</condition>
|
||||||
|
|
||||||
|
<condition name='disabled_if_in' source='redisRole'>
|
||||||
|
<param>Node</param>
|
||||||
|
<target type='filelist'>redisCl</target>
|
||||||
|
</condition>
|
||||||
|
|
||||||
<condition name='disabled_if_in' source='rdClMemberRole'>
|
<condition name='disabled_if_in' source='rdClMemberRole'>
|
||||||
<param>master</param>
|
<param>master</param>
|
||||||
<target type='variable'>rdClMemberMaster</target>
|
<target type='variable'>rdClMemberMaster</target>
|
||||||
|
|
Loading…
Reference in New Issue