Puppet Class: gerrit::jobs

Defined in:
modules/gerrit/manifests/jobs.pp

Overview

sets up periodic jobs for Gerrit



2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'modules/gerrit/manifests/jobs.pp', line 2

class gerrit::jobs {

    require gerrit::jetty

    systemd::timer::job { 'clear_gerrit_logs':
        ensure      => 'present',
        user        => 'root',
        description => 'Gerrit rotates their own logs, but does not clean them out. Delete old logs.',
        command     => "/usr/bin/find /var/log/gerrit/ -name \"*.gz\" -mtime +30 -delete",
        interval    => {'start' => 'OnCalendar', 'interval' => 'daily'},
    }

}