Parameterized logrotate rotate count

Change-Id: If94aa017f378bd449fa28a2fccfdf46a357de995
Closes-Bug: PROD-36110
diff --git a/README.rst b/README.rst
index c12d847..fb6b4ae 100644
--- a/README.rst
+++ b/README.rst
@@ -464,7 +464,8 @@
                   - mail01
 
 Logrotate settings which allow you to rotate the logs in
-a random time in a given time interval. Time in seconds
+a random time in a given time interval. Time in seconds.
+Rotate count is also supported.
 
 .. code-block:: yaml
 
@@ -473,6 +474,7 @@
       logrotate:
         start_period: 600
         end_period: 1200
+        rotate: 5
 
 Apache modules management
 
diff --git a/apache/meta/logrotate.yml b/apache/meta/logrotate.yml
index 0d297f9..365d853 100644
--- a/apache/meta/logrotate.yml
+++ b/apache/meta/logrotate.yml
@@ -6,7 +6,7 @@
       options:
         - daily
         - missingok
-        - rotate: 14
+        - rotate: {{ server.get('logrotate', {}).get('rotate', 14) }}
         - compress
         - delaycompress
         - notifempty