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.
|
- {%- from "linux/map.jinja" import system with context -%}
-
- {%- if system.atop.enabled %}
- job:
- atop:
- - files:
- - {{ system.atop.logpath }}/atop*
- - {{ system.atop.logpath }}/{{ system.atop.outfile }}
- options:
- - olddir {{ system.atop.logpath }}/old
- - compress
- - delaycompress
- - missingok
- - notifempty
- - rotate: 10
- - daily
- - minsize: 20M
- - maxsize: 500M
- - postrotate: "if ! service atop status > /dev/null; then service atop restart > /dev/null; fi"
- {%- endif %}
|