Module for managing logrotate.
Get the value for a specific configuration line.
The value for a specific configuration line.
CLI Example:
salt '*' logrotate.get rotate
salt '*' logrotate.get /var/log/wtmp rotate /etc/logrotate.conf
Set a new value for a specific configuration line.
A boolean representing whether all changes succeeded.
CLI Example:
salt '*' logrotate.set rotate 2
Can also be used to set a single value inside a multiline configuration block. For instance, to change rotate in the following block:
/var/log/wtmp {
monthly
create 0664 root root
rotate 1
}
Use the following command:
salt '*' logrotate.set /var/log/wtmp rotate 2
This module also has the ability to scan files inside an include directory, and make changes in the appropriate file.
Generated on May 22, 2024 at 17:25:40 UTC.
You are viewing docs for the latest stable release, 3007.1. Switch to docs for the previous stable release, 3006.8, or to a recent doc build from the master branch.
© 2024 VMware, Inc. | Privacy Policy