Defined Type: profile::mediawiki::maintenance::refreshlinks::cronjob

Defined in:
modules/profile/manifests/mediawiki/maintenance/refreshlinks/cronjob.pp

Overview

a mediawiki maintenance cron job to refresh link



2
3
4
5
6
7
8
9
10
# File 'modules/profile/manifests/mediawiki/maintenance/refreshlinks/cronjob.pp', line 2

define profile::mediawiki::maintenance::refreshlinks::cronjob {
    $db_cluster = regsubst($name, '@.*', '\1')
    $monthday = regsubst($name, '.*@', '\1')

    profile::mediawiki::periodic_job { "cron-refreshlinks-${name}":
        command  => "/usr/local/bin/mwscriptwikiset refreshLinks.php ${db_cluster}.dblist --dfn-only",
        interval => "*-${monthday} 00:00",
    }
}