Merge pull request #21 from salt-formulas/logrotate
Add logrotate support
diff --git a/horizon/meta/logrotate.yml b/horizon/meta/logrotate.yml
new file mode 100644
index 0000000..6abdeb3
--- /dev/null
+++ b/horizon/meta/logrotate.yml
@@ -0,0 +1,14 @@
+job:
+ horizon:
+ - files:
+ - /var/log/horizon/*.log
+ options:
+ - compress
+ - delaycompress
+ - missingok
+ - notifempty
+ - rotate: 10
+ - daily
+ - minsize: 20M
+ - maxsize: 500M
+ - postrotate: "if /etc/init.d/apache2 status > /dev/null; then /etc/init.d/apache2 reload > /dev/null; fi"