Giter Club home page Giter Club logo

role-redis's Introduction

Redis cluster Ansible Role

Role Variables

  • redis_bind_addr: This is the address that both Redis and Sentinel will bind to. (Default: 0.0.0.0)
  • redis_port: Port used by Redis. (Default: 6379)
  • redis_sentinel_port: Port used by Sentinel. (Default: 26379)
  • redis_sentinel_quorum: Sentinel Quorum. (Default: 2)
  • redis_sentinel_down_after: Sentinel down-after-milliseconds value. (Default: 10000)
  • redis_sentinel_failover_timeout: Sentinel failover-timeout value. (Default: 10000)
  • redis_version: Redis version to install. (Default: 6.2.4)
  • redis_initial_master: Initial master node. (Default: redis-1)
  • redis_initial_master_ip: Initial master node IP. (Default: "{{ hostvars[redis_initial_master].ansible_default_ipv4.address }}")
  • redis_preflight: Check if Redis is installed and matches the target version. When all the Redis binaries are present and the installed version matches the target, the role will only update configuration files. (Default: yes)

Running Molecule locally

Playground

make molecule-destroy
make molecule-converge

docker ps
CONTAINER ID   NAMES
2d90009c52f0   redis-3
fc0e79c37d27   redis-2
cfbae4d15dbf   redis-1

docker exec -it cfbae4d15dbf bash

Running tests

make molecule-test

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.