Defined Type: wikistats::cronjob::import

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

Overview

define a cronjob to import a wikistats table



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

define wikistats::cronjob::import() {

    $project = regsubst($name, '@.*', '\1')
    $weekday = regsubst($name, '.*@', '\1')

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