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 (Any) (defaults to: hiera('profile::wmcs::services::server_peers'))
  • networks_acl (Any) (defaults to: hiera('profile::wmcs::services::wmcs_networks_acl', [ '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
28
29
# File 'modules/profile/manifests/wmcs/services/ntp.pp', line 4

class profile::wmcs::services::ntp(
    $server_peers = hiera('profile::wmcs::services::server_peers'),
    $networks_acl = hiera('profile::wmcs::services::wmcs_networks_acl',
        [ '172.16.0.0 mask 255.255.248.0', '10.68.16.0 mask 255.255.248.0' ]),
) {
    contain standard::ntp

    $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
}