Jgreen has uploaded a new change for review. https://gerrit.wikimedia.org/r/78089
Change subject: cron jobs for otrs ...................................................................... cron jobs for otrs Change-Id: I61a37ca35121557f823a8ff1a4f7c4c306d73f70 --- A files/otrs/crontab.otrs M manifests/role/otrs.pp 2 files changed, 31 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/89/78089/1 diff --git a/files/otrs/crontab.otrs b/files/otrs/crontab.otrs new file mode 100644 index 0000000..9038f45 --- /dev/null +++ b/files/otrs/crontab.otrs @@ -0,0 +1,25 @@ +# installed by puppet, see puppet/files/otrs/crontab.otrs + +MAILTO="[email protected]" + +# delete expired cache weekly +20 0 * * 0 otrs /opt/otrs/bin/otrs.DeleteCache.pl --expired >> /dev/null +30 0 * * 0 otrs /opt/otrs/bin/otrs.LoaderCache.pl -o delete >> /dev/null + +# start generic agent +*/20 * * * * otrs /opt/otrs/bin/otrs.GenericAgent.pl >> /dev/null + +# check for pending jobs +45 */2 * * * otrs /opt/otrs/bin/otrs.PendingJobs.pl >> /dev/null + +# check daily the spool directory of OTRS +10 0 * * * otrs /opt/otrs/bin/otrs.cleanup >> /dev/null + +# rebuild ticket index daily +01 01 * * * otrs /opt/otrs/bin/otrs.RebuildTicketIndex.pl >> /dev/null + +# purge old/idle session id's +55 */2 * * * otrs /opt/otrs/bin/otrs.DeleteSessionIDs.pl --expired >> /dev/null + +# unlock old locked tickets +35 * * * * otrs /opt/otrs/bin/otrs.UnlockTickets.pl --timeout >> /dev/null diff --git a/manifests/role/otrs.pp b/manifests/role/otrs.pp index 4a02dab..98ecc69 100644 --- a/manifests/role/otrs.pp +++ b/manifests/role/otrs.pp @@ -32,6 +32,12 @@ group => root, mode => '0444', source => 'puppet:///files/apache/sites/ticket.wikimedia.org'; + '/etc/cron.d/otrs': + ensure => present, + owner => root, + group => root, + mode => '0444', + source => 'puppet:///files/otrs/crontab.otrs'; } install_certificate{ "star.wikimedia.org": } -- To view, visit https://gerrit.wikimedia.org/r/78089 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I61a37ca35121557f823a8ff1a4f7c4c306d73f70 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Jgreen <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
