From da940068aaa3e11e514514bc270a624495dbc1ad Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 8 Oct 2020 23:31:11 +0200 Subject: [PATCH] protected_mode: ignore on Ubuntu 16.04 --- templates/redis-sentinel.conf.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/redis-sentinel.conf.erb b/templates/redis-sentinel.conf.erb index 38bb3224..a21be9c6 100644 --- a/templates/redis-sentinel.conf.erb +++ b/templates/redis-sentinel.conf.erb @@ -5,7 +5,9 @@ port <%= @sentinel_port %> dir <%= @working_dir %> daemonize <%= @daemonize ? 'yes' : 'no' %> pidfile <%= @pid_file %> +<% if @facts['os']['release']['major'] != '16.04' -%> protected-mode <%= @protected_mode ? 'yes' : 'no' %> +<% end -%> sentinel monitor <%= @master_name %> <%= @redis_host %> <%= @redis_port %> <%= @quorum %> sentinel down-after-milliseconds <%= @master_name %> <%= @down_after %>