Puppet Class: profile::confd

Defined in:
modules/profile/manifests/confd.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • prefix (String) (defaults to: lookup('conftool_prefix'))

    the conftool_prefix

  • instances (Hash[String, Hash]) (defaults to: lookup('profile::confd::instances'))

    a hash of instances to configure



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'modules/profile/manifests/confd.pp', line 4

class profile::confd (
    String             $prefix    = lookup('conftool_prefix'),
    Hash[String, Hash] $instances = lookup('profile::confd::instances'),
) {
    # inject default values and ensure we always have a main section
    $defaults = {
        'main'    => {
            'prefix'  => $prefix,
            'srv_dns' => "${::site}.wmnet",
        },
    }
    class { 'confd':
        instances => deep_merge($defaults, $instances),
    }
}