Puppet Class: dumps::generation::server::exceptionchecker

Defined in:
modules/dumps/manifests/generation/server/exceptionchecker.pp

Overview

Parameters:

  • dumpsbasedir (Any) (defaults to: undef)
  • user (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'modules/dumps/manifests/generation/server/exceptionchecker.pp', line 1

class dumps::generation::server::exceptionchecker(
    $dumpsbasedir = undef,
    $user         = undef,
)  {
    file { '/usr/local/bin/dumps_exception_checker.py':
        ensure => 'present',
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/dumps/generation/dumps_exception_checker.py',
    }

    systemd::timer::job { 'dumps-exception-checker':
        ensure                  => 'present',
        description             => 'Regular jobs to check for exceptions',
        user                    => $user,
        send_mail               => true,
        send_mail_only_on_error => false,
        monitoring_enabled      => false,
        command                 => "/usr/bin/python3 /usr/local/bin/dumps_exception_checker.py ${dumpsbasedir} 480 latest",
        environment             => {'MAILTO' => 'ops-dumps@wikimedia.org'},
        interval                => {'start' => 'OnCalendar', 'interval' => '*-*-* 0/8:40:00'},
        require                 => File['/usr/local/bin/dumps_exception_checker.py'],
    }
}