Puppet Class: snapshot::systemdjobs::commonsdumps::rdf

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

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

    $scriptpath = '/usr/local/bin/dumpwikibaserdf.sh'
    if !$filesonly {
        systemd::timer::job { 'commonsrdf-dump':
            ensure             => present,
            description        => 'Regular jobs to build rdf snapshot of commons structured data',
            user               => $user,
            monitoring_enabled => false,
            send_mail          => true,
            environment        => {'MAILTO' => 'ops-dumps@wikimedia.org'},
            command            => "${scriptpath} -p commons -d mediainfo -f ttl -e nt",
            interval           => {'start' => 'OnCalendar', 'interval' => 'Sun *-*-* 19:0:0'},
            require            => File[$scriptpath],
        }
    }
}