Puppet Class: ssh::knownhosts

Defined in:
manifests/knownhosts.pp

Summary

This class manages knownhosts if collection is enabled.

Overview

Parameters:

  • collect_enabled (Boolean) (defaults to: $ssh::knownhosts::collect_enabled)

    Enable collection

  • storeconfigs_group (Optional[String[1]]) (defaults to: undef)

    Define the hostkeys group storage



10
11
12
13
14
15
16
17
18
19
20
21
# File 'manifests/knownhosts.pp', line 10

class ssh::knownhosts (
  Boolean             $collect_enabled    = $ssh::knownhosts::collect_enabled,
  Optional[String[1]] $storeconfigs_group = undef,
) {
  if ($collect_enabled) {
    if $storeconfigs_group {
      Sshkey <<| tag == "hostkey_${storeconfigs_group}" |>>
    } else {
      Sshkey <<| |>>
    }
  }
}