Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ redis_sentinel_monitors:
failover_timeout: 180000
notification_script: false
client_reconfig_script: false

rename_commands: []
```

## Facts
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ redis_sentinel_monitors:
failover_timeout: 180000
notification_script: false
client_reconfig_script: false
rename_commands: []
6 changes: 5 additions & 1 deletion templates/redis_sentinel.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ sentinel monitor {{ master.name }} {{ master.host }} {{ master.port }} {{ master
sentinel {{ option|replace('_', '-') }} {{ master.name }} {{ master[option] }}
{% endif %}
{% endfor -%}

{% if master['rename_commands'] is defined -%}
{% for command in master['rename_commands'] -%}
sentinel rename-command {{ master.name }} {{ command }}
{% endfor -%}
{% endif -%}
{% endfor -%}

logfile {{ redis_sentinel_logfile }}
Expand Down