Add logrotate meta configuration for Backupninja

	- parametrize interval and rotate

Related: PROD-29848

Change-Id: I339d1ebf654d5673ac501aaefa8199cbd3f63c7e
diff --git a/backupninja/meta/logrotate.yml b/backupninja/meta/logrotate.yml
new file mode 100644
index 0000000..093b084
--- /dev/null
+++ b/backupninja/meta/logrotate.yml
@@ -0,0 +1,14 @@
+## Default: Monthly rotation with 6 rotations left
+{%- from "backupninja/map.jinja" import client with context %}
+
+{%- if client.get('enabled', False) %}
+job:
+  backupninja:
+    - files:
+        - /var/log/backupninja.log
+      options:
+        - {{ client.get('logrotate', {}).get('interval', 'monthly') }}
+        - rotate: {{ client.get('logrotate', {}).get('rotate', 6) }}
+        - compress
+        - missingok
+{%- endif %}
\ No newline at end of file