Open autumnw opened 7 years ago
I can confirm this happening on CentOS 7 as well. The changes proposed fix the issue.
Same issue here ✌️
For others with this problem on centos7, i wrote a quick script to put in /srv/formulas that will fix it, basically automating @autumnw 's suggestion.
for file in $(grep -R 'cluster.enabled' salt-formula-redis/ | cut -d ':' -f 1 | uniq)
do
echo "Fixing $file"
sed -i 's/cluster\.enabled/cluster != None and cluster.enabled/g' $file
done
echo "Fixing configuration directory for rhel"
sed -i "s/\/etc\/redis\/redis.conf/\/etc/g" salt-formula-redis/redis/map.jinja
If I install redis in server mode. The pillar config as the following:
salt-call pillar.get redis local:
I will get the following error:
The proposal fix is adding "if cluster != None" in redis.conf everywhere likes the following
{%- if cluster != None and cluster.enabled %}
BTW, this is on centos 7. Another issue is in map.jinja, we should make the default conf_dir work: 'RedHat': { 'version': '2.8', 'pkgs': ['redis'], 'service': 'redis', 'conf_dir': '/etc', 'enabled': True, 'bind': { 'address': '127.0.0.1', 'port': '6379' }