Puppet Class: dumps::web::dumplists

Defined in:
modules/dumps/manifests/web/dumplists.pp

Overview

Parameters:

  • xmldumpsdir (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
26
27
28
29
30
31
32
# File 'modules/dumps/manifests/web/dumplists.pp', line 1

class dumps::web::dumplists(
    $xmldumpsdir = undef,
    $user   = undef,
) {
    file { '/usr/local/bin/list-last-good-dumps.sh':
        ensure => 'present',
        path   => '/usr/local/bin/list-last-good-dumps.sh',
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/dumps/web/list-last-good-dumps.sh',
    }
    file { '/usr/local/bin/list-last-n-good-dumps.py':
        ensure => 'present',
        path   => '/usr/local/bin/list-last-n-good-dumps.py',
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/dumps/web/list-last-n-good-dumps.py',
    }

    # fixme there is an implicit dependency on
    # $dumpsdir/confs/wikidump.conf.monitor, make explicit
    cron { 'list-good-dumps':
        ensure      => 'present',
        environment => 'MAILTO=ops-dumps@wikimedia.org',
        user        => $user,
        command     => "/usr/local/bin/list-last-good-dumps.sh --xmldumpsdir ${xmldumpsdir}",
        minute      => '55',
        hour        => '3',
    }
}