Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added redis_supervised option to config file #296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ redis_syslog_facility: USER

## General configuration
redis_daemonize: "yes"

# Defaults to upstart or systemd depending on
redis_supervised: "no"

redis_pidfile: /var/run/redis/{{ redis_port }}.pid
# Number of databases to allow
redis_databases: 16
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ redis_syslog_facility: USER

## General configuration
redis_daemonize: "yes"
redis_supervised: "{{ 'systemd' if redis_as_service and ansible_service_mgr|default() in ('systemd', 'upstart') else 'no' }}"
redis_pidfile: /var/run/redis/{{ redis_port }}.pid
# Number of databases to allow
redis_databases: 16
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 }}
supervised {{ redis_`supervised` }}
protected-mode {{ redis_protected_mode }}
pidfile {{ redis_pidfile }}
dir {{ redis_dir }}
Expand Down