Puppet Class: profile::wmcs::services::ntp

Defined in:
modules/profile/manifests/wmcs/services/ntp.pp

Overview

Class profile::wmcs::services::ntp

Ntp server profile

Parameters:

  • server_peers (Array[Stdlib::Host]) (defaults to: lookup('profile::wmcs::services::server_peers'))
  • networks_acl (Array[String]) (defaults to: lookup('profile::wmcs::services::wmcs_networks_acl', { 'default_value' => [ '172.16.0.0 mask 255.255.248.0', '10.68.16.0 mask 255.255.248.0' ] }))


4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'modules/profile/manifests/wmcs/services/ntp.pp', line 4

class profile::wmcs::services::ntp(
    Array[Stdlib::Host] $server_peers = lookup('profile::wmcs::services::server_peers'),
    Array[String] $networks_acl = lookup('profile::wmcs::services::wmcs_networks_acl',
    { 'default_value' => [ '172.16.0.0 mask 255.255.248.0', '10.68.16.0 mask 255.255.248.0' ] }),
){
    $server_upstream_pools = ['0.us.pool.ntp.org']

    # Keep syncing even if our peer doesn't respond
    $extra_config = 'tos orphan 12'

    $query_acl = []
    $server_upstreams = []

    ntp::daemon { 'server':
        servers      => $server_upstreams,
        pools        => $server_upstream_pools,
        peers        => $server_peers,
        time_acl     => $networks_acl,
        extra_config => $extra_config,
        query_acl    => $query_acl,
    }

    # FIXME: add monitoring once we decide on a wmcs/services monitoring system
}