Defined Type: ntp::cron
- Defined in:
- manifests/cron.pp
Overview
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'manifests/cron.pp', line 1
define ntp::cron(
$server = $name,
$ensure = 'present',
$hour = '*',
$minute = '*/30',
$month = undef,
$monthday = undef,
$weekday = undef,
) {
cron { "cron ntpdate ${server}":
ensure => $ensure,
command => "ntpdate ${server}",
user => 'root',
hour => $hour,
minute => $minute,
month => $month,
monthday => $monthday,
weekday => $weekday,
requrire => Class['::ntp'],
}
}
|