Puppet Class: profile::keyholder::server

Defined in:
modules/profile/manifests/keyholder/server.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class profile::keyholder::server

Sets up the keyholder agents on a server.

Parameters

agents

List of keyholder::agent instances to declare.

Parameters:

  • agents (Hash) (defaults to: lookup('profile::keyholder::server::agents', { 'default_value' => {}}))
  • require_encrypted_keys (Stdlib::Yes_no) (defaults to: lookup('profile::keyholder::server::require_encrypted_keys', { 'default_value' => 'yes' }))


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'modules/profile/manifests/keyholder/server.pp', line 9

class profile::keyholder::server(
    Hash $agents = lookup('profile::keyholder::server::agents', { 'default_value' => {}}),
    Stdlib::Yes_no $require_encrypted_keys = lookup('profile::keyholder::server::require_encrypted_keys', { 'default_value' => 'yes' }),
){

    class { '::keyholder':
        require_encrypted_keys => $require_encrypted_keys,
    }
    class { '::keyholder::monitoring':
    }

    $agents.each |$name, $params| {
        keyholder::agent{ $name:
            * => $params
        }
    }
}