From 281190efb367298f4134672ff25082a5a74fba9f Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 21 Feb 2019 14:14:13 +1100 Subject: [PATCH] FEATURE: disable protected mode in redis We do not require protected mode in redis cause it runs in a container and is default protected. Protected mode breaks running our template in a multi container setup or certain users exposting redis from the container if they wish --- templates/redis.template.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/redis.template.yml b/templates/redis.template.yml index c69a736..44bbca1 100644 --- a/templates/redis.template.yml +++ b/templates/redis.template.yml @@ -48,6 +48,11 @@ run: from: /^dir .*$/ to: "dir /shared/redis_data" + - replace: + filename: "/etc/redis/redis.conf" + from: /^protected-mode yes/ + to: "protected-mode no" + - exec: cmd: echo redis installed hook: redis -- 2.25.1