Puppet Class: snapshot::systemdjobs::wikidatadumps::rdf

Defined in:
modules/snapshot/manifests/systemdjobs/wikidatadumps/rdf.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'modules/snapshot/manifests/systemdjobs/wikidatadumps/rdf.pp', line 1

class snapshot::systemdjobs::wikidatadumps::rdf(
    $user      = undef,
    $filesonly = false,
) {
    # functions for wikibase rdf dumps, with values specific to wikidata
    file { '/usr/local/bin/wikidatardf_functions.sh':
        mode   => '0755',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/systemdjobs/wikibase/wikidatardf_functions.sh',
    }

    $scriptpath = '/usr/local/bin/dumpwikibaserdf.sh'
    if !$filesonly {
        systemd::timer::job { 'wikidatardf-all-dumps':
            ensure             => present,
            description        => 'Regular jobs to build rdf snapshot of wikidata',
            user               => $user,
            monitoring_enabled => false,
            send_mail          => true,
            environment        => {'MAILTO' => 'ops-dumps@wikimedia.org'},
            command            => "${scriptpath} -p wikidata -d all -f ttl -e nt",
            interval           => {'start' => 'OnCalendar', 'interval' => 'Mon *-*-* 23:0:0'},
            require            => File[$scriptpath],
        }
        systemd::timer::job { 'wikidatardf-truthy-dumps':
            ensure             => present,
            description        => 'Regular jobs to build rdf snapshot of wikidata truthy statements',
            user               => $user,
            monitoring_enabled => false,
            send_mail          => true,
            environment        => {'MAILTO' => 'ops-dumps@wikimedia.org'},
            command            => "${scriptpath} -p wikidata -d truthy -f nt",
            interval           => {'start' => 'OnCalendar', 'interval' => 'Wed *-*-* 23:0:0'},
            require            => File[$scriptpath],
        }
        systemd::timer::job { 'wikidatardf-lexemes-dumps':
            ensure             => present,
            description        => 'Regular jobs to build rdf snapshot of wikidata lexemes',
            user               => $user,
            monitoring_enabled => false,
            send_mail          => true,
            environment        => {'MAILTO' => 'ops-dumps@wikimedia.org'},
            command            => "${scriptpath} -p wikidata -d lexemes -f ttl -e nt",
            interval           => {'start' => 'OnCalendar', 'interval' => 'Fri *-*-* 23:0:0'},
            require            => File[$scriptpath],
        }
    }
}