Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 line
566B

  1. {%- from "linux/map.jinja" import system with context -%}
  2. {%- if system.atop.enabled %}
  3. job:
  4. atop:
  5. - files:
  6. - {{ system.atop.logpath }}/atop*
  7. - {{ system.atop.logpath }}/{{ system.atop.outfile }}
  8. options:
  9. - olddir {{ system.atop.logpath }}/old
  10. - compress
  11. - delaycompress
  12. - missingok
  13. - notifempty
  14. - rotate: 10
  15. - daily
  16. - minsize: 20M
  17. - maxsize: 500M
  18. - postrotate: "if ! service atop status > /dev/null; then service atop restart > /dev/null; fi"
  19. {%- endif %}