Puppet Class: confdroid_ntp::params

Summary

Class contains all parameters for the confdroid_ntp module.

Overview

confdroid_ntp::params.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)

Parameters:

  • cy_reqpackages (Array) (defaults to: ['chrony']) —

    List of required packages to install for the confdroid_ntp module.

  • cy_pkg_ensure (String) (defaults to: 'present') —

    Ensure state of the required packages.

  • cy_server_fqdn (String) (defaults to: 'ntp.example.local') —

    FQDN of the NTP server to configure. If the fqdn of the host matches this value, a time server will be configured, else a client.

  • cy_conf_servers (Array) (defaults to: ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org']) —

    List of NTP servers to point to as time source

  • cy_min_sources (String) (defaults to: '3') —

    Minimum number of selectable sources required to adjust the system clock. Primarily used for servers.

  • cy_client_allow (String) (defaults to: '192.168.1.0/24') —

    CIDR notation for allowed client networks

  • cy_leapsec_mode (String) (defaults to: 'slew') —

    Leap second handling mode. Valid values are ‘slew’ or ‘step’.

  • cy_leapsectz (String) (defaults to: 'right/UTC') —

    Leap second timezone file to use.

  • cy_loginfo (String) (defaults to: 'measurements statistics tracking') —

    Log information to record. Valid values are ‘measurements’, ‘statistics’, and ‘tracking’.

  • cy_use_lan_server (Boolean) (defaults to: false) —

    Whether to use a local LAN server or external pool.



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'manifests/params.pp', line 22

class confdroid_ntp::params (

# installation
  Array $cy_reqpackages       = ['chrony'],
  String $cy_pkg_ensure       = 'present',

# configuration
  Boolean $cy_use_lan_server  = false,
  String $cy_server_fqdn      = 'ntp.example.local',
  Array $cy_conf_servers      = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
  String $cy_min_sources      = '3',
  String $cy_client_allow     = '192.168.1.0/24',
  String $cy_leapsec_mode     = 'slew',
  String $cy_leapsectz        = 'right/UTC',
  String $cy_loginfo          = 'measurements statistics tracking',

) {
# facts
  $fqdn                       = $facts['networking']['fqdn']
  $domain                     = $facts['networking']['domain']
  $os_name                    = $facts['os']['name']
  $os_release                 = $facts['os']['release']['major']

# dirs

# files
  $cy_conf_file               = '/etc/chrony.conf'
  $cy_conf_erb                = 'confdroid_ntp/chrony.conf.erb'

# service
  $cy_service                 = 'chronyd'

# includes must be last
  include confdroid_ntp::main::config
}