
In anticipation of puppet 4, start trying to deal with puppet 4 things that can be helpfully predicted by puppet lint plugins. Also fix lint errors caught by the puppet-lint-absolute_classname-check gem as well as arrow alignment errors not caught before. Change-Id: I6ee8cc21247258d9a37ce3304c207c4b637378f7
33 lines
691 B
Puppet
33 lines
691 B
Puppet
# == Class: jeepyb::manage_projects
|
|
|
|
class jeepyb::manage_projects(
|
|
$timeout = 900, # 15 minutes
|
|
$logfile = '/var/log/manage_projects.log',
|
|
$log_options = [
|
|
'compress',
|
|
'missingok',
|
|
'rotate 30',
|
|
'daily',
|
|
'notifempty',
|
|
'copytruncate',
|
|
],
|
|
) {
|
|
validate_array($log_options)
|
|
|
|
include ::jeepyb
|
|
|
|
exec { 'jeepyb_manage_projects':
|
|
command => "/usr/local/bin/manage-projects -v >> ${logfile} 2>&1",
|
|
timeout => $timeout, # 15 minutes
|
|
refreshonly => true,
|
|
logoutput => true,
|
|
}
|
|
|
|
include ::logrotate
|
|
logrotate::file { $logfile:
|
|
log => $logfile,
|
|
options => $log_options,
|
|
require => Exec['jeepyb_manage_projects'],
|
|
}
|
|
}
|