Yuvipanda has uploaded a new change for review. https://gerrit.wikimedia.org/r/70064
Change subject: Add support for renaming Redis commands to the redis class ...................................................................... Add support for renaming Redis commands to the redis class Change-Id: Ifc726cb49765609507882aa9b4065d8dea6fe4ef --- M modules/redis/manifests/init.pp M modules/redis/templates/redis.conf.erb 2 files changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/64/70064/1 diff --git a/modules/redis/manifests/init.pp b/modules/redis/manifests/init.pp index 78fb508..dfe8e98 100644 --- a/modules/redis/manifests/init.pp +++ b/modules/redis/manifests/init.pp @@ -7,6 +7,7 @@ $maxmemory_samples = 5, $persist = "rdb", # [ rdb, aof, both ] $redis_options = {}, + $rename_commands = {}, $redis_replication = undef, $package = "redis-server", $package_version = "present", diff --git a/modules/redis/templates/redis.conf.erb b/modules/redis/templates/redis.conf.erb index 8cbabcb..2edc36b 100644 --- a/modules/redis/templates/redis.conf.erb +++ b/modules/redis/templates/redis.conf.erb @@ -554,6 +554,10 @@ <%= option %> <%= value %> <% end -%> +# Rename commands if any are required. Can be also used to disable them +<% rename_commands.each_pair do |command,renamed_to| -%> +<%= command %> <%= renamed_to %> +<% end -%> ################################## INCLUDES ################################### # Include one or more other config files here. This is useful if you -- To view, visit https://gerrit.wikimedia.org/r/70064 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ifc726cb49765609507882aa9b4065d8dea6fe4ef Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Yuvipanda <yuvipa...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits