Puppet Class: snapshot::cron

Defined in:
modules/snapshot/manifests/cron.pp

Overview

Parameters:

  • miscdumpsuser (Any) (defaults to: undef)
  • group (Any) (defaults to: undef)
  • filesonly (Any) (defaults to: false)
  • php (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'modules/snapshot/manifests/cron.pp', line 1

class snapshot::cron(
    $miscdumpsuser = undef,
    $group         = undef,
    $filesonly     = false,
    $php           = undef,
) {
    file { '/usr/local/etc/dump_functions.sh':
        ensure => 'present',
        path   => '/usr/local/etc/dump_functions.sh',
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/cron/dump_functions.sh',
    }

    class { '::snapshot::cron::configure':
        php => $php,
    }

    class { '::snapshot::cron::mediaperprojectlists':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::pagetitles':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::cirrussearch':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::categoriesrdf':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::dump_global_blocks':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::contentxlation':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::shorturls':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::dump_machine_vision':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::addschanges':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    # this class does not do any dumps, it just sets up
    # requirements for any wikibase type dumps
    # it cannot be imply included in those dumps classes
    # because we need to pass in the user/group params
    class { '::snapshot::cron::wikibase':
        user  => $miscdumpsuser,
        group => $group,
    }

    # wikibase type dumps
    class { '::snapshot::cron::wikidatadumps':
        user      => $miscdumpsuser,
        group     => $group,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::commonsdumps':
        user      => $miscdumpsuser,
        group     => $group,
        filesonly => $filesonly,
    }
}