aboutsummaryrefslogtreecommitdiffstats
path: root/roles/redis
diff options
context:
space:
mode:
Diffstat (limited to 'roles/redis')
-rw-r--r--roles/redis/README.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/roles/redis/README.md b/roles/redis/README.md
new file mode 100644
index 0000000..8017bb2
--- /dev/null
+++ b/roles/redis/README.md
@@ -0,0 +1,42 @@
+Redis
+=====
+
+Description
+-----------
+
+The `redis` role configures a local Redis instance on the specified port.
+The database will be stored in `/var/lib/redis/$PORT`, so it's possible to run
+multiple redis instances on the same host.
+
+
+Variables
+---------
+
+This role **accepts** the following variables:
+
+Variable | Default | Description
+--------------------------|---------------|------------
+`redis_port` | 6379 | Local listening port
+`redis_max_memory` | `2gb` | Memory usage limit before eviction
+`redis_max_memory_policy` | `allkeys-lru` | Eviction policy
+
+This role **exports** the following variables:
+
+Variable | Description
+-------------|------------
+`redis_home` | Path to redis data directory
+
+Usage
+-----
+
+Example playbook:
+
+````yaml
+- name: install redis
+ hosts: test1
+ roles:
+ - role: redis
+ vars:
+ redis_port: 6379
+ redis_max_memory: 2g
+````