Skip to content

Latest commit

 

History

History
111 lines (72 loc) · 2.97 KB

README.md

File metadata and controls

111 lines (72 loc) · 2.97 KB

Logo Build Status

Redis Ansible role

This ansible role installs Redis server in a debian environment.

Getting Started

These instructions will get you a copy of the role for your ansible playbook. Once launched, it will install a Redis server.

Prerequisities

Ansible 2.2.1.0 version installed. Inventory destination should be a Debian environment.

For testing purposes, Molecule with Vagrant as driver (with landrush plugin) and VirtualBox as provider.

Installing

Create or add to your roles dependency file (e.g requirements.yml):

- src: idealista.redis-role
  version: 1.0.0
  name: redis

Install the role with ansible-galaxy command:

ansible-galaxy install -p roles -r requirements.yml -f

Use in a playbook:

- hosts: someserver
  roles:
    - redis

Usage

Look to the defaults properties file to see the possible configuration properties.

There is a playbook and example configuration on cluster mode test. This role have been testing to deploy a cluster provisioning host one by one (serial: 1).

Testing

Install dependencies

pipenv install

For more information read the pipenv docs.

Testing cluster mode

pipenv shell
molecule test -s cluster

NOTE: This test have been removed from Travis CI because it takes too much time.

Testing single mode

pipenv shell
molecule test -s single

Built With

Ansible Molecule Goss

Versioning

For the versions available, see the tags on this repository.

Additionaly you can see what change in each version in the CHANGELOG.md file.

Authors

See also the list of contributors who participated in this project.

License

Apache 2.0 Licence

This project is licensed under the Apache 2.0 license - see the LICENSE file for details.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.