Module for managing logrotate.
salt.modules.logrotate.
set
(key, value, setting=None, conf_file='/etc/logrotate.conf')¶Set a new value for a specific configuration line
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.
salt.modules.logrotate.
show_conf
(conf_file='/etc/logrotate.conf')¶Show parsed configuration
CLI Example:
salt '*' logrotate.show_conf
Generated on July 18, 2017 at 06:45:48 MDT.
You are viewing docs for the previous stable release, 2016.3.6. Switch to docs for the latest stable release, 2016.11.6, or to a recent doc build from the develop branch.
© 2017 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy