Defined Type: cron::job::monthly

Defined in:
manifests/job/monthly.pp

Overview

Manage weekly cron jobs.

Parameters:

  • command (Cron::Command)

    Command path to be executed

  • minute (Cron::Minute) (defaults to: 0)

    Cron minute

  • hour (Cron::Hour) (defaults to: 0)

    Cron hour

  • monthday (Cron::Monthday) (defaults to: 1)

    Cron monthday

  • user (Cron::User) (defaults to: 'root')

    The user who owns the cron job



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/job/monthly.pp', line 8

define cron::job::monthly (
  Cron::Command  $command,
  Cron::Minute   $minute   = 0,
  Cron::Hour     $hour     = 0,
  Cron::Monthday $monthday = 1,
  Cron::User     $user   = 'root',
) {

  cron::job { $title:
    command  => $command,
    minute   => $minute,
    hour     => $hour,
    monthday => $monthday,
    month    => '*',
    weekday  => '*',
    user     => $user,
  }

}