Puppet Class: snapshot::cron::contentxlation

Defined in:
modules/snapshot/manifests/cron/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
# File 'modules/snapshot/manifests/cron/contentxlation.pp', line 1

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

    if !$filesonly {
        cron { 'xlation-dumps':
            ensure      => 'present',
            environment => 'MAILTO=ops-dumps@wikimedia.org',
            user        => $user,
            command     => '/usr/local/bin/dumpcontentxlation.sh',
            minute      => '10',
            hour        => '9',
            weekday     => '5',
            require     => File[$scriptpath],
        }
    }
}