Giter Club home page Giter Club logo

Comments (7)

nicovs avatar nicovs commented on August 18, 2024 3

as from: https://github.com/redis/redis/blob/unstable/redis.conf#L249-L265 (vs the v5 config: https://github.com/redis/redis/blob/5.0/redis.conf#L138-L147)

There is a need to uncomment (or add an include file via the var: redis_includes, check the Readme
with content supervised auto

# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
#   supervised no      - no supervision interaction
#   supervised upstart - signal upstart by putting Redis into SIGSTOP mode
#                        requires "expect stop" in your upstart job config
#   supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET
#                        on startup, and updating Redis status on a regular
#                        basis.
#   supervised auto    - detect upstart or systemd method based on
#                        UPSTART_JOB or NOTIFY_SOCKET environment variables
# Note: these supervision methods only signal "process is ready."
#       They do not enable continuous pings back to your supervisor.
#
# The default is "no". To run under upstart/systemd, you can simply uncomment
# the line below:
#
# supervised auto

from ansible-role-redis.

stale avatar stale commented on August 18, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

from ansible-role-redis.

stale avatar stale commented on August 18, 2024

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

from ansible-role-redis.

StanBright avatar StanBright commented on August 18, 2024

Can we reopen this? I was just bitten by this :/

from ansible-role-redis.

smutel avatar smutel commented on August 18, 2024

Same issue, any workaround ?

from ansible-role-redis.

smutel avatar smutel commented on August 18, 2024

As a workaround:

daemonize no
supervised auto

from ansible-role-redis.

nicovs avatar nicovs commented on August 18, 2024

I do it like this:
Setup a host or group var on your redis_servers group

redis_include: |
  supervised auto

Add this to your playbook:

- name: create redis folder
  file:
    path: /etc/redis
    state: directory

- set_fact:
    redis_includes: [ '/etc/redis/redis_include.conf' ]
  when: redis_include is defined

- name: Redis Include extra options
  template: 
    src: "{{ playbook_dir }}/templates/redis/redis_include.conf.j2"
    dest: /etc/redis/redis_include.conf
    owner: redis
    group: redis
    mode: 0640
  notify: 
    - restart redis
  when: redis_include is defined

- import_role:
    name: geerlingguy.redis

and a template in: templates/redis/redis_include.conf.j2

{{ ansible_managed | comment }}

{{ redis_include }}

from ansible-role-redis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.