Skip to content

Commit c537ad0

Browse files
committed
Add redis_disable_commands parameter to redis::server
1 parent 5c50ccc commit c537ad0

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- Server: add include parameter for config
1616
- allows for compatibility with Amazon Linux
1717
- Add cluster params documentation + enable cluster support
18+
- Add redis_disable_commands
1819

1920
## 2016-06-24 - 1.9.0 (Feature/Bugfix release)
2021

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ Max clients of Redis instance. Default: undef (number)
370370

371371
Configure the no-appendfsync-on-rewrite variable. Set to yes to enable the option. Defaults off. Default: false (boolean)
372372

373+
#####`redis_disable_commands`
374+
375+
List of commands to disable on the server. Default: []
376+
373377
#####`aof_rewrite_percentage`
374378

375379
Configure the percentage size difference between the last aof filesize and the newest to trigger a rewrite. Default 100

manifests/server.pp

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
# Define the path for the append file. Optional. Default: undef
5858
# [*redis_append_enable*]
5959
# Enable or disable the appendonly file option. Default: false
60+
# [*redis_disable_commands]
61+
# List of commands to disable on the server. Default: []
6062
# [*slaveof*]
6163
# Configure Redis Master on a slave
6264
# [*masterauth*]
@@ -149,6 +151,7 @@
149151
$redis_enabled_append_file = false,
150152
$redis_append_file = undef,
151153
$redis_append_enable = false,
154+
$redis_disable_commands = [],
152155
$slaveof = undef,
153156
$masterauth = undef,
154157
$slave_serve_stale_data = true,

templates/etc/redis.conf.erb

+3
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ repl-timeout <%= @repl_timeout %>
247247
# an empty string:
248248
#
249249
# rename-command CONFIG ""
250+
<% @redis_disable_commands.each do |command| -%>
251+
rename-command <%= command %> ""
252+
<% end -%>
250253

251254
################################### LIMITS ####################################
252255

0 commit comments

Comments
 (0)