Add logrotate meta configuration for RabbitMQ

	- parametrize interval and rotate

Related: PROD-29848

Change-Id: I2e53e209c455f6bab1990cc8b75d4c95049c5287
diff --git a/rabbitmq/meta/logrotate.yml b/rabbitmq/meta/logrotate.yml
new file mode 100644
index 0000000..016bd9d
--- /dev/null
+++ b/rabbitmq/meta/logrotate.yml
@@ -0,0 +1,19 @@
+## Default: Weekly rotation with 20 rotations kept
+{%- from "rabbitmq/map.jinja" import server with context %}
+
+{%- if server.get('enabled', False) %}
+job:
+  rabbitmq-server:
+    - files:
+        - /var/log/rabbitmq/*.log
+      options:
+        - {{ server.get('logrotate', {}).get('interval', 'weekly') }}
+        - rotate: {{ server.get('logrotate', {}).get('rotate', 20) }}
+        - missingok
+        - compress
+        - delaycompress
+        - notifempty
+        - sharedscripts
+        - postrotate:
+              /etc/init.d/rabbitmq-server rotate-logs > /dev/null
+{%- endif %}