Giter VIP home page Giter VIP logo

ansible-role-redis's Introduction

#######################################################################################################

❗ DEPRECATION ❗

This repository and the role associated are deprecated in favor of the Manala Ansible Collection

You will find informations on its usage on the collection repository

#######################################################################################################

Ansible Role: Redis Build Status

Report issues and send Pull Requests in the main Ansible Role repository

This role will deal with the setup of Redis.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.redis

Using ansible galaxy requirements file:

- src: manala.redis

Role Handlers

Name Type Description
redis restart Service Restart redis server
redis-sentinel restart Service Restart redis sentinel

Role Variables

Name Default Type Description
manala_redis_version ~ String Version (autodetect if null)
manala_redis_install_packages ~ Array Dependency packages to install
manala_redis_install_packages_default ['redis-server']/['redis-sentinel'] Array Default dependency packages to install
manala_redis_server true Boolean Install and configure "redis-server"
manala_redis_server_config_file '/etc/redis/redis.conf' String Configuration file path
manala_redis_server_config_template ~ String Configuration template path
manala_redis_server_config ~ Array/String Configuration directives
manala_redis_sentinel false Boolean Install and configure "redis-sentinel"
manala_redis_sentinel_config_file '/etc/redis/sentinel.conf' String Sentinel configuration file path
manala_redis_sentinel_config {} Array Sentinel configuration directives

Configuration example

Redis server

Use debian default main config template (recommended):

manala_redis_server_config_template: config/debian/redis.conf.j2
manala_redis_server_config:
  include:
    - /foo/bar.conf
    - /foo/baz.conf
  port: 1234

Use dict parameters:

manala_redis_server_config:
  include:
    - /foo/bar.conf
    - /foo/baz.conf
  port: 1234

Use raw main config:

manala_redis_server_config: |
  include /foo/bar.conf
  include /foo/baz.conf
  port 1234

Use dict's array parameters (deprecated):

manala_redis_server_config:
  - port: 1234

Redis sentinel

manala_redis_sentinel: true
manala_redis_sentinel_config:
    sentinel monitor: mymaster 192.168.0.10 6379 2
    sentinel auth-pass: mymaster f00bar
    sentinel down-after-milliseconds: mymaster 5000
    protected-mode: "no"

Example playbook

- hosts: servers
  roles:
    - role: manala.redis

Licence

MIT

Author information

Manala (http://www.manala.io/)

ansible-role-redis's People

Contributors

greedybro avatar nervo avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

devdrops ndf-dw

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.