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
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ redis_version: 2.8.24
redis_install_dir: /opt/redis
redis_dir: /var/lib/redis/{{ redis_port }}
redis_download_url: "http://download.redis.io/releases/redis-{{ redis_version }}.tar.gz"

redis_protected_mode: "yes"
# Set this to true to validate redis tarball checksum against vars/main.yml
redis_verify_checksum: false
# Set this value to a local path of a tarball to use for installation instead of downloading
Expand Down Expand Up @@ -106,6 +108,7 @@ redis_client_output_buffer_limit_pubsub: 32mb 8mb 60
## Redis sentinel configs
# Set this to true on a host to configure it as a Sentinel
redis_sentinel: false
redis_sentinel_protected_mode: "yes"
redis_sentinel_dir: /var/lib/redis/sentinel_{{ redis_sentinel_port }}
redis_sentinel_bind: 0.0.0.0
redis_sentinel_port: 26379
Expand Down
1 change: 1 addition & 0 deletions templates/redis.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# General
daemonize {{ redis_daemonize }}
protected-mode {{ redis_protected_mode }}
pidfile {{ redis_pidfile }}
dir {{ redis_dir }}
port {{ redis_port }}
Expand Down
1 change: 1 addition & 0 deletions templates/redis_sentinel.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# sentinel_{{ redis_sentinel_port }}.conf

daemonize {{ redis_daemonize }}
protected-mode {{ redis_sentinel_protected_mode }}
dir {{ redis_sentinel_dir }}
pidfile {{ redis_sentinel_pidfile }}
port {{ redis_sentinel_port }}
Expand Down