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 %}