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

Add replication role detection from runtime Redis information #128

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Commits on Nov 25, 2016

  1. Add fact scripts to retrieve per-instance information

    Export Redis information (as retrieved by the INFO) command as local
    facts for each configured server/sentinel instance.
    
    Those facts are created in addition to the existing global facts, and
    are identified by keys in the form of `redis_{{ redis_port }}` and
    `redis_sentinel_{{ redis_sentinel_port }}`.
    danielkza committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    e348b89 View commit details
    Browse the repository at this point in the history
  2. Add instance facts tests

    danielkza committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    7adbe54 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c9b8b1f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2f1d2ad View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ce93af8 View commit details
    Browse the repository at this point in the history
  6. Install pre-daemon script to preserve config rewrites

    The script will copy over the contents of the main configuration file,
    then any new lines added to the running config file after the CONFIG
    REWRITE tag line. This way Redis Sentinel information and dynamic
    master/slave status is not lost when re-configuring instances.
    danielkza committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    de3f7dd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    05886a6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b4ba397 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8483d87 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1150309 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    102b7f8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    14e1ac7 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    2717edf View commit details
    Browse the repository at this point in the history
  14. Explicitly run systemd module with daemon-reload when necessary

    The service module doesn't accept implementation-specific arguments
    before Ansible 2.2.
    danielkza committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    6d5b53f View commit details
    Browse the repository at this point in the history
  15. Fix Redis sentinel configuration file permissions

    The Sentinel config file contains the Redis password, and therefore,
    cannot be publicly readable.
    
    Also ensure files have the redis group set.
    danielkza committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    06ceaa0 View commit details
    Browse the repository at this point in the history
  16. Update prepare-config script

    - Reduce verbosity
    - Only set permissions of dynamic config file (not it's containing
    directory)
    - Correctly use redis user and group from template
    danielkza committed Nov 25, 2016
    Configuration menu
    Copy the full SHA
    fa8e1a8 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    14e92d6 View commit details
    Browse the repository at this point in the history