Puppet Class: snapshot::cron::dump_global_blocks

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

class snapshot::cron::dump_global_blocks(
    $user      = undef,
    $filesonly = false,
) {
    $confsdir = $snapshot::dumps::dirs::confsdir

    file { '/usr/local/bin/dump-global-blocks.sh':
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/cron/dump-global-blocks.sh',
    }

    if !$filesonly {
        cron { 'global_blocks_dump':
            ensure      => 'present',
            command     => "/usr/local/bin/dump-global-blocks.sh --config ${confsdir}/wikidump.conf.dumps",
            environment => 'MAILTO=ops-dumps@wikimedia.org',
            user        => $user,
            minute      => '15',
            hour        => '8',
            weekday     => '6',
        }
    }
}