Defined Type: wikistats::cronjob::import

Defined in:
modules/wikistats/manifests/cronjob/import.pp

Overview

define a cronjob to import a wikistats table

Parameters:

  • weekday (Integer)
  • ensure (Wmflib::Ensure) (defaults to: 'present')


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'modules/wikistats/manifests/cronjob/import.pp', line 2

define wikistats::cronjob::import(
    Integer $weekday,
    Wmflib::Ensure $ensure = 'present',
){
    $project = $name

    cron { "cron-wikistats-import-${name}":
        ensure  => $ensure,
        command => "/usr/local/bin/wikistats/import_${project}.sh > /var/log/wikistats/import_${project}.log 2>&1",
        user    => 'wikistatsuser',
        weekday => $weekday,
        hour    => '11',
        minute  => '11',
    }
}