Puppet Class: r_profile::ntp

Defined in:
manifests/ntp.pp

Overview

R_profile::Ntp

A more general-purpose NTP

Supports:

  • AIX (in this class)

  • Solaris (puppetlabs-ntp)

  • Linux (puppetlabs-ntp)

Parameters:

  • servers (Any) (defaults to: hiera("r_profile::ntp::servers", undef))

    Array of servers to ask for the time

  • package_manage (Boolean) (defaults to: hiera("r_profile::ntp::package_manage", true))

    True if we should install ntp otherwise false

  • service_manage (Boolean) (defaults to: hiera("r_profile::ntp::service_manage", true))

    True if we should control the ntpd service otherwise false

  • service_name (Any) (defaults to: hiera("r_profile::ntp::service_name", undef))

    Name of the service to manage if we are instructed to do so



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/ntp.pp', line 14

class r_profile::ntp(
    $servers                = hiera("r_profile::ntp::servers", undef),
    Boolean $package_manage = hiera("r_profile::ntp::package_manage", true),
    Boolean $service_manage = hiera("r_profile::ntp::service_manage", true),
    $service_name           = hiera("r_profile::ntp::service_name", undef),
) {
  if $facts['virtual'] != "docker" {
    class { "ntp":
      servers        => $servers,
      package_manage => $package_manage,
      service_manage => $service_manage,
      service_name   => $service_name,
    }
  }
}