Defined Type: ntp::cron

Defined in:
manifests/cron.pp

Overview

Parameters:

  • server (Any) (defaults to: $name)
  • ensure (Any) (defaults to: 'present')
  • hour (Any) (defaults to: '*')
  • minute (Any) (defaults to: '*/30')
  • month (Any) (defaults to: undef)
  • monthday (Any) (defaults to: undef)
  • weekday (Any) (defaults to: undef)


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'],
  }
}