Merge "Logrotate the indexer.log logfile."

This commit is contained in:
Jenkins 2015-05-15 01:23:54 +00:00 committed by Gerrit Code Review
commit 584d0f3479
2 changed files with 16 additions and 1 deletions

View File

@ -52,4 +52,18 @@ class logstash::indexer (
File['/etc/init/logstash-indexer.conf'],
]
}
include logrotate
logrotate::file { 'indexer.log':
log => '/var/log/logstash/indexer.log',
options => [
'compress',
'copytruncate',
'missingok',
'rotate 7',
'daily',
'notifempty',
],
require => Service['logstash-indexer'],
}
}

View File

@ -8,6 +8,7 @@
"project_page": "http://docs.openstack.org/infra/system-config/",
"issues_url": "https://storyboard.openstack.org/#!/project/763",
"dependencies": [
{"name":"puppetlabs/apache","version_requirement":">= 0.0.3 <0.0.5"}
{"name":"puppetlabs/apache","version_requirement":">= 0.0.3 <0.0.5"},
{"name":"openstackinfra/logrotate"}
]
}