Puppet Class: snapshot::systemdjobs

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

class snapshot::systemdjobs(
    $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/systemdjobs/dump_functions.sh',
    }

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

    class { '::snapshot::systemdjobs::mediaperprojectlists':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::systemdjobs::pagetitles':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::systemdjobs::cirrussearch':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::systemdjobs::categoriesrdf':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::systemdjobs::dump_global_blocks':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::systemdjobs::contentxlation':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::systemdjobs::shorturls':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::addschanges':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::systemdjobs::dump_growth_mentorship':
        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::systemdjobs::wikibase':
        user  => $miscdumpsuser,
        group => $group,
    }

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