Puppet Class: snapshot::cron::configure

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

Overview

Parameters:

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

class snapshot::cron::configure(
    $php = undef,
) {
    $dblist = "${snapshot::dumps::dirs::apachedir}/dblists/all.dblist"
    $tempdir = $snapshot::dumps::dirs::dumpstempdir
    $apachedir = $snapshot::dumps::dirs::apachedir
    $confsdir = $snapshot::dumps::dirs::confsdir
    $config = {
        global => {
            dblist => "${apachedir}/dblists/all.dblist",
        },
        wikidata => {
            shards   => 8,
            fileSize_json => 20000000000,
            fileSize_all => 23500000000,
            fileSize_truthy => 14000000000,
            fileSize_lexemes => 1000,
        },
    }
    $config_labs = {
        global => {
            dblist => "${apachedir}/dblists/all-labs.dblist",
        },
        wikidata => {
            shards   => 2,
            fileSize_json => 2000,
            fileSize_all => 2000,
            fileSize_truthy => 2000,
            fileSize_lexemes => 100,
        },
    }
    snapshot::cron::configfile{ 'wikidump.conf.other':
        configvals => $config,
    }
    snapshot::cron::configfile{ 'wikidump.conf.other.labs':
        configvals => $config_labs,
    }
}