Saltstack Official Linux Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920
  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 %}