Add logrotate meta configuration for Redis

	- parametrize interval and rotate

Related: PROD-29848

Change-Id: Iefcf0fb6ac636848a91bd316b34cdc7da42bdef8
diff --git a/redis/meta/logrotate.yml b/redis/meta/logrotate.yml
new file mode 100644
index 0000000..5ad3cae
--- /dev/null
+++ b/redis/meta/logrotate.yml
@@ -0,0 +1,24 @@
+## Default: Weekly rotation with 12 rotations kept
+{%- from "redis/map.jinja" import server with context %}
+
+{%- if server.get('enabled', False) %}
+job:
+  redis-sentinel:
+    - files:
+        - /var/log/redis/redis-sentinel*.log
+      options:
+        - {{ server.get('logrotate', {}).get('interval', 'weekly') }}
+        - rotate: {{ server.get('logrotate', {}).get('rotate', 12) }}
+        - missingok
+        - compress
+        - notifempty
+  redis-server:
+    - files:
+        - /var/log/redis/redis-server*.log
+      options:
+        - {{ server.get('logrotate', {}).get('interval', 'weekly') }}
+        - rotate: {{ server.get('logrotate', {}).get('rotate', 12) }}
+        - missingok
+        - compress
+        - notifempty
+{%- endif %}