From 921c92fd5b08e70104d8b21d03a9c56762282c88 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 8 Jan 2019 10:04:27 +0100 Subject: [PATCH] redis: add a variable for renamed/disabled commands --- CHANGELOG.md | 1 + redis/defaults/main.yml | 2 ++ redis/templates/redis.conf.j2 | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56758994..71f2b034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The **patch** part changes incrementally at each release. * evomaintenance: database variables must be set or the task fails * rbenv: add pkg-config to the list of packages to install * redis: Configure munin when working in instance mode +* redis: add a variable for renamed/disabled commands * redis: add a variable to disable the restart handler * redis: add a variable to force a restart (even with no change) diff --git a/redis/defaults/main.yml b/redis/defaults/main.yml index 8413e0d7..a64fb832 100644 --- a/redis/defaults/main.yml +++ b/redis/defaults/main.yml @@ -43,3 +43,5 @@ redis_includes: [] redis_restart_if_needed: True redis_restart_force: False + +redis_disabled_commands: [] diff --git a/redis/templates/redis.conf.j2 b/redis/templates/redis.conf.j2 index a585d61c..4dcdba86 100644 --- a/redis/templates/redis.conf.j2 +++ b/redis/templates/redis.conf.j2 @@ -51,6 +51,10 @@ appendonly {{ redis_appendonly }} appendfsync {{ redis_appendfsync }} no-appendfsync-on-rewrite no +{% for disabled_command in redis_disabled_commands %} +rename-command {{ disabled_command }} "" +{% endfor %} + {% for include in redis_includes %} include {{ include }} {% endfor %}