Puppet Class: snapshot::systemdjobs::wikidatadumps

Defined in:
modules/snapshot/manifests/systemdjobs/wikidatadumps.pp

Overview

Parameters:

  • user (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
# File 'modules/snapshot/manifests/systemdjobs/wikidatadumps.pp', line 1

class snapshot::systemdjobs::wikidatadumps(
    $user      = undef,
    $group     = undef,
    $filesonly = false,
) {
    file { '/var/log/wikidatadump':
        ensure => 'directory',
        mode   => '0755',
        owner  => $user,
        group  => $group,
    }

    file { '/usr/local/etc/dcat_wikidata_config.json':
        mode   => '0644',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/snapshot/systemdjobs/wikibase/dcat_wikidata_config.json',
    }

    class { '::snapshot::systemdjobs::wikidatadumps::json':
        user      => $user,
        filesonly => $filesonly,
    }
    class { '::snapshot::systemdjobs::wikidatadumps::rdf':
        user      => $user,
        filesonly => $filesonly,
    }
}