File: knownhosts.pp

package info (click to toggle)
puppet-module-saz-ssh 13.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 564 kB
  • sloc: ruby: 1,511; sh: 10; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# @summary
#   This class manages knownhosts if collection is enabled.
#
# @param collect_enabled
#   Enable collection
#
# @param storeconfigs_group
#   Define the hostkeys group storage
#
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 <<| |>>
    }
  }
}