Defined Type: cron::job
- Defined in:
- manifests/job.pp
Overview
Cron job defined type with a bit of magic dust sprinkled all over.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'manifests/job.pp', line 35
define cron::job (
Cron::Command $command,
Cron::Ensure $ensure = present,
Cron::User $user = 'root',
Cron::Minute $minute = '*',
Cron::Hour $hour = '*',
Cron::Monthday $monthday = '*',
Cron::Month $month = '*',
Cron::Weekday $weekday = '*',
) {
include cron
cron { $title:
ensure => $ensure,
user => $user,
command => $command,
minute => $minute,
hour => $hour,
monthday => $monthday,
month => $month,
weekday => $weekday,
}
}
|