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)


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
# File 'modules/snapshot/manifests/cron.pp', line 1

class snapshot::cron(
    $miscdumpsuser = undef,
    $group         = undef,
    $filesonly     = false,
) {
    $dblist = "${snapshot::dumps::dirs::apachedir}/dblists/all.dblist"
    $tempdir = $snapshot::dumps::dirs::dumpstempdir
    $confsdir = $snapshot::dumps::dirs::confsdir
    file { "${confsdir}/wikidump.conf.other":
        ensure  => 'present',
        path    => "${confsdir}/wikidump.conf.other",
        mode    => '0755',
        owner   => 'root',
        group   => 'root',
        content => template('snapshot/wikidump.conf.other.erb'),
    }

    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::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::wikidatadumps':
        user      => $miscdumpsuser,
        group     => $group,
        filesonly => $filesonly,
    }
    class { '::snapshot::cron::contentxlation':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
    class { '::snapshot::addschanges':
        user      => $miscdumpsuser,
        filesonly => $filesonly,
    }
}