Puppet Class: snapshot::systemdjobs::contentxlation

Defined in:
modules/snapshot/manifests/systemdjobs/contentxlation.pp

Overview

Parameters:

  • user (Any) (defaults to: undef)
  • filesonly (Any) (defaults to: false)


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
26
# File 'modules/snapshot/manifests/systemdjobs/contentxlation.pp', line 1

class snapshot::systemdjobs::contentxlation(
    $user      = undef,
    $filesonly = false,
) {
    $scriptpath = '/usr/local/bin/dumpcontentxlation.sh'
    file { $scriptpath:
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/systemdjobs/dumpcontentxlation.sh',
    }

    if !$filesonly {
        systemd::timer::job { 'xlation-dumps':
            ensure             => present,
            description        => 'Regular jobs to build snapshot of content translation data',
            user               => $user,
            monitoring_enabled => false,
            send_mail          => true,
            environment        => {'MAILTO' => 'ops-dumps@wikimedia.org'},
            command            => '/usr/local/bin/dumpcontentxlation.sh',
            interval           => {'start' => 'OnCalendar', 'interval' => 'Fri *-*-* 9:10:0'},
            require            => File[$scriptpath],
        }
    }
}