aboutsummaryrefslogtreecommitdiffstats
path: root/roles/redis/README.md
diff options
context:
space:
mode:
authorStonewall Jackson <stonewall@sacredheartsc.com>2023-02-19 20:44:23 -0500
committerStonewall Jackson <stonewall@sacredheartsc.com>2023-02-19 20:44:23 -0500
commit16491198b3ba4723d94f959f101c138592af9f12 (patch)
tree8970c588d3a2e378077ddaff7385af03bcfcf80c /roles/redis/README.md
parent33c05537faa95798e02865ded6741ea49037e08e (diff)
downloadselfhosted-16491198b3ba4723d94f959f101c138592af9f12.tar.gz
selfhosted-16491198b3ba4723d94f959f101c138592af9f12.zip
redis: add docs
Diffstat (limited to 'roles/redis/README.md')
-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
+````