
Validate that the first option is a string. Mutate the path to remove /'s, allowing full paths to be passed. Change-Id: I341290c430023e5e9a24bf2247482ed818ea4a26
21 lines
363 B
Markdown
21 lines
363 B
Markdown
# OpenStack Logrotate Module
|
|
|
|
This module installs and configures Logrotate
|
|
|
|
Rotate logfiles using the logrotate::file defined type:
|
|
|
|
|
|
include logrotate
|
|
logrotate::file { 'manage_projects.log':
|
|
log => '/var/log/manage_projects.log',
|
|
options => [
|
|
'compress',
|
|
'missingok',
|
|
'rotate 30',
|
|
'daily',
|
|
'notifempty',
|
|
'copytruncate',
|
|
],
|
|
}
|
|
|