Defined Type: cron::job
- Defined in:
- manifests/job.pp
Overview
Cron job defined type with a bit of magic dust sprinkled all over.
34 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 34
define cron::job (
Cron::Command $command,
Cron::User $user = 'root',
Cron::Minute $minute = '*',
Cron::Hour $hour = '*',
Cron::Monthday $monthday = '*',
Cron::Month $month = '*',
Cron::Weekday $weekday = '*',
) {
include cron
cron { $title:
ensure => present,
user => $user,
command => $command,
minute => $minute,
hour => $hour,
monthday => $monthday,
month => $month,
weekday => $weekday,
}
}
|