Puppet Class: psick::openssh

Defined in:
manifests/openssh.pp

Overview

This class installs openssh using tp

Parameters:

  • configs_hash (Hash) (defaults to: {})
  • keygens_hash (Hash) (defaults to: {})
  • keypairs_hash (Hash) (defaults to: {})
  • keyscans_hash (Hash) (defaults to: {})
  • module (String) (defaults to: 'psick')
  • manage (Boolean) (defaults to: $psick::manage)
  • noop_manage (Boolean) (defaults to: $psick::noop_manage)
  • noop_value (Boolean) (defaults to: $psick::noop_value)


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'manifests/openssh.pp', line 3

class psick::openssh (
  Hash    $configs_hash   = {},
  Hash    $keygens_hash  = {},
  Hash    $keypairs_hash = {},
  Hash    $keyscans_hash = {},
  String  $module        = 'psick',
  Boolean $manage        = $psick::manage,
  Boolean $noop_manage   = $psick::noop_manage,
  Boolean $noop_value    = $psick::noop_value,
) {
  if $manage {
    if $noop_manage {
      noop($noop_value)
    }

    case $module {
      'tp_profile': {
        contain tp_profile::openssh
      }
      'psick': {
        contain psick::openssh::tp
      }
      '': {}
      default: {
        contain openssh
      }
    }
    $configs_hash.each |$k,$v| {
      psick::openssh::config { $k:
        * => $v,
      }
    }
    $keygens_hash.each |$k,$v| {
      psick::openssh::keygen { $k:
        * => $v,
      }
    }
    $keypairs_hash.each |$k,$v| {
      psick::openssh::keypair { $k:
        * => $v,
      }
    }
    $keyscans_hash.each |$k,$v| {
      psick::openssh::keyscan { $k:
        * => $v,
      }
    }
  }
}