From 66aec20b16dea1da79a264d9b08f768722b90b6a Mon Sep 17 00:00:00 2001 From: Deimos Date: Fri, 11 Jan 2019 21:08:33 -0700 Subject: [PATCH] Salt: fix failure if no Redis modules defined Creating the redis.conf file would crash if there weren't any modules defined (such as on the monitoring server, which doesn't need any). --- salt/salt/redis/redis.conf.jinja2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/salt/redis/redis.conf.jinja2 b/salt/salt/redis/redis.conf.jinja2 index 21cb4a1..003b0fa 100644 --- a/salt/salt/redis/redis.conf.jinja2 +++ b/salt/salt/redis/redis.conf.jinja2 @@ -43,9 +43,11 @@ # loadmodule /path/to/my_module.so # loadmodule /path/to/other_module.so +{% if accumulator is defined %} {% for line in accumulator['redis_loadmodule_lines'] -%} {{ line }} {% endfor %} +{% endif %} ################################## NETWORK #####################################