Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
clouddrove-ci committed Jul 14, 2021
1 parent 4ecc47d commit dc423b8
Showing 1 changed file with 82 additions and 59 deletions.
141 changes: 82 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<!-- This file was automatically generated by the `geine`. Make all changes to `README.yaml` and run `make readme` to rebuild this file. -->


<p align="center"> <img src="https://user-images.githubusercontent.com/50652676/62451340-ba925480-b78b-11e9-99f0-13a8a9cc0afa.png" width="100" height="100"></p>

<h1 align="center">
Ansible Role Docker Redis
</h1>

<p align="center" style="font-size: 1.2rem;">
This ansible role is used to setup Redis server with docker on Debian.
<p align="center" style="font-size: 1.2rem;">
This ansible role is used to setup Redis server with docker on linux.
</p>

<p align="center">
Expand All @@ -25,14 +26,16 @@
<img src="https://img.shields.io/badge/ubuntu-20.x-orange?style=flat&logo=ubuntu" alt="Distribution">
</a>
<a href="https://www.centos.org/">
<img src="https://img.shields.io/badge/centos-8.x-orange" alt="Distribution">
<img src="https://img.shields.io/badge/CentOS-8-green?style=flat&logo=centos" alt="Distribution">
</a>
<a href="https://aws.amazon.com/amazon-linux-ami/">
<img src="https://img.shields.io/badge/Amazone_linux-2-yellow?style=flat&logo=linux" alt="Distribution">
<img src="https://img.shields.io/badge/Amazon_linux-2-yellow?style=flat&logo=linux" alt="Distribution">
</a>
<a href="https://github.com/clouddrove/ansible-role-docker-redis/actions/workflows/lint.yml">
<img src="https://github.com/clouddrove/ansible-role-docker-redis/actions/workflows/lint.yml/badge.svg" alt="Actions">
</a>


</p>
<p align="center">

Expand All @@ -49,94 +52,114 @@
</p>
<hr>

We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.


We eat, drink, sleep and most importantly love **DevOps**. DevOps always promotes automation and standardisation. While setting up various environments like local, dev, testing, production, etc. it is critical to maintain the same environment across. This can easily be achieved using automating the environment setup & installation with the help of ansible-playbooks.

Smaller roles are created for each environment elements; which also include tasks & tests. These roles can then be grouped together in [ansible-playbook](https://docs.ansible.com/ansible/latest/user_guide/playbooks_intro.html) to achieve the desired yet consistent results.



## Prerequisites

This module has a few dependencies:
This module has a few dependencies:

- [Ansible2.9](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
- [Python](https://www.python.org/downloads)
- [Docker](https://docs.docker.com/install/linux/docker-ce/ubuntu)




## What Includes

Followiing things includes in this role:
Following things includes in this role:

- redis-cli
- redis-server







## Example Playbook

**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/ansible-role-docker-redis/releases).


```yaml
- hosts: localhost
remote_user: ubuntu
remote_user: root
become: true
roles:
- clouddrove.ansible_role_docker_redis
```


## Variables

```yaml
redis_version: "6.2"
redis_user: redis
redis_group: redis
mount_path: /data
redis_server_opt_dir: "/opt/redis-server"
redis_server_config_dir: "{{ redis_server_opt_dir }}/config"
redis_server_log_dir: "/var/log/redis"
redis_server_data_dir: "{{ mount_path }}/redis-server"
redis_server_bind: 0.0.0.0
redis_server_port: 6379
redis_server_password: false
redis_server_min_slaves_to_write: 0
redis_server_min_slaves_max_lag: 10
redis_server_tcp_backlog: 10000
redis_server_tcp_keepalive: 20
redis_server_maxclients: 30000
redis_server_timeout: 0
redis_server_slaveof: false
redis_server_slave_read_only: "yes"
redis_server_slave_priority: 100
redis_server_repl_backlog_size: false
redis_server_dir: /var/lib/redis
redis_server_logfile: '"/var/log/redis/redis-server.log"'
redis_server_databases: 16
redis_server_loglevel: notice
redis_server_slowlog_log_slower_than: 10000
redis_server_slowlog_max_len: 128
redis_server_maxmemory: false
redis_server_maxmemory_policy: noeviction
redis_server_rename_commands: []
redis_server_save:
- 900 1
- 300 10
- 60 10000
redis_server_stop_writes_on_bgsave_error: "yes"
redis_server_rdbcompression: "yes"
redis_server_rdbchecksum: "yes"
redis_server_appendonly: "no"
redis_server_appendfilename: "appendonly.aof"
redis_server_appendfsync: "everysec"
redis_server_no_appendfsync_on_rewrite: "no"
redis_server_auto_aof_rewrite_percentage: "100"
redis_server_auto_aof_rewrite_min_size: "64mb"
redis_server_notify_keyspace_events: '""'
redis_version: "6.2"
redis_user: redis
redis_group: redis
mount_path: /data
redis_server_opt_dir: "/opt/redis-server"
redis_server_config_dir: "{{ redis_server_opt_dir }}/config"
redis_server_log_dir: "/var/log/redis"
redis_server_data_dir: "{{ mount_path }}/redis-server"
redis_server_bind: 0.0.0.0
redis_server_port: 6379
redis_server_password: false
redis_server_min_slaves_to_write: 0
redis_server_min_slaves_max_lag: 10
redis_server_tcp_backlog: 10000
redis_server_tcp_keepalive: 20
redis_server_maxclients: 30000
redis_server_timeout: 0
redis_server_slaveof: false
redis_server_slave_read_only: "yes"
redis_server_slave_priority: 100
redis_server_repl_backlog_size: false
redis_server_dir: /var/lib/redis
redis_server_logfile: '"/var/log/redis/redis-server.log"'
redis_server_databases: 16
redis_server_loglevel: notice
redis_server_slowlog_log_slower_than: 10000
redis_server_slowlog_max_len: 128
redis_server_maxmemory: false
redis_server_maxmemory_policy: noeviction
redis_server_rename_commands: []
redis_server_save:
- 900 1
- 300 10
- 60 10000
redis_server_stop_writes_on_bgsave_error: "yes"
redis_server_rdbcompression: "yes"
redis_server_rdbchecksum: "yes"
redis_server_appendonly: "no"
redis_server_appendfilename: "appendonly.aof"
redis_server_appendfsync: "everysec"
redis_server_no_appendfsync_on_rewrite: "no"
redis_server_auto_aof_rewrite_percentage: "100"
redis_server_auto_aof_rewrite_min_size: "64mb"
redis_server_notify_keyspace_events: '""'
```


## Installation

```console
$ ansible-galaxy install clouddrove.ansible_role_docker_redis
```

## Feedback





## Feedback
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/ansible-role-docker-redis/issues), or feel free to drop us an email at [hello@clouddrove.com](mailto:hello@clouddrove.com).

If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/ansible-role-docker-redis)!
Expand All @@ -149,9 +172,9 @@ At [CloudDrove][website], we offer expert guidance, implementation support and s
<hr />
<p align="center">We ❤️ <a href="https://github.com/clouddrove">Open Source</a> and you can check out <a href="https://github.com/clouddrove">our other modules</a> to get help with your new Cloud ideas.</p>

[website]: https://clouddrove.com
[github]: https://github.com/clouddrove
[linkedin]: https://cpco.io/linkedin
[twitter]: https://twitter.com/clouddrove/
[email]: https://clouddrove.com/contact-us.html
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=
[website]: https://clouddrove.com
[github]: https://github.com/clouddrove
[linkedin]: https://cpco.io/linkedin
[twitter]: https://twitter.com/clouddrove/
[email]: https://clouddrove.com/contact-us.html
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=

0 comments on commit dc423b8

Please sign in to comment.