Defined Type: profile::analytics::refinery::job::import_wikibase_dumps_config

Defined in:
modules/profile/manifests/analytics/refinery/job/import_wikibase_dumps_config.pp

Overview

Parameters:

  • include_pattern (Any)
  • local_source (Any)
  • hdfs_destination (Any)
  • timer_description (Any)
  • timer_interval (Any)
  • script_path (Any) (defaults to: "/usr/local/bin/${title}")
  • ensure (Any) (defaults to: 'present')


30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'modules/profile/manifests/analytics/refinery/job/import_wikibase_dumps_config.pp', line 30

define profile::analytics::refinery::job::import_wikibase_dumps_config(
    $include_pattern,
    $local_source,
    $hdfs_destination,
    $timer_description,
    $timer_interval,
    $script_path = "/usr/local/bin/${title}",
    $ensure = 'present',
) {

    file { $script_path:
        ensure  => $ensure,
        content => template('profile/analytics/refinery/job/refinery-import-wikibase-dumps.sh.erb'),
        mode    => '0550',
        owner   => 'analytics',
        group   => 'analytics',
    }

    kerberos::systemd_timer { $title:
        ensure      => $ensure,
        description => $timer_description,
        command     => $script_path,
        interval    => $timer_interval,
        user        => 'analytics',
        require     => File[$script_path],
    }

}