Puppet Class: profile::keyholder::server

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

Overview

Class profile::keyholder::server

Sets up the keyholder agents on a server.

Parameters

agents

List of keyholder::agent instances to declare.

Parameters:

  • agents (Any) (defaults to: hiera('profile::keyholder::server::agents', {}))
  • require_encrypted_keys (Any) (defaults to: hiera('profile::keyholder::server::require_encrypted_keys', 'yes'))


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

class profile::keyholder::server(
    $agents = hiera('profile::keyholder::server::agents', {}),
    $require_encrypted_keys = hiera('profile::keyholder::server::require_encrypted_keys', 'yes'),
) {
    class { '::keyholder':
        require_encrypted_keys => $require_encrypted_keys,
    }
    class { '::keyholder::monitoring':
    }

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