Puppet Class: snapshot::cron::mediaperprojectlists

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

class snapshot::cron::mediaperprojectlists(
    $user      = undef,
    $filesonly = false,
) {
    file { '/usr/local/bin/create-media-per-project-lists.sh':
        ensure => 'present',
        path   => '/usr/local/bin/create-media-per-project-lists.sh',
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/cron/create-media-per-project-lists.sh',
    }

    if !$filesonly {
        cron { 'list-media-per-project':
            ensure      => 'present',
            environment => 'MAILTO=ops-dumps@wikimedia.org',
            user        => $user,
            command     => '/usr/local/bin/create-media-per-project-lists.sh',
            minute      => '10',
            hour        => '11',
            weekday     => '7',
        }
    }
}