Puppet Class: snapshot::cron::wikidatadumps

Defined in:
modules/snapshot/manifests/cron/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/cron/wikidatadumps.pp', line 1

class snapshot::cron::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/cron/wikibase/dcat_wikidata_config.json',
    }

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