Puppet Class: openssh::profile::server

Defined in:
manifests/profile/server.pp

Summary

Basic OpenSSH profile

Overview

Basic OpenSSH profile

Examples:

include openssh::profile::server

Parameters:

  • sshkey_name (Optional[String]) (defaults to: lookup({ 'name' => 'openssh::sshkey_name', 'default_value' => undef }))

    Name to use for new authorized key record for user root

  • sshkey (Optional[String]) (defaults to: lookup({ 'name' => 'openssh::keys::sshkey', 'default_value' => undef }))
  • custom_ssh_keys (Optional[Array[Openssh::SshKey]]) (defaults to: lookup({ 'name' => 'openssh::keys::custom_ssh_keys', 'default_value' => undef }))


13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/profile/server.pp', line 13

class openssh::profile::server (
  Optional[String]
          $sshkey_name     = lookup({ 'name' => 'openssh::sshkey_name', 'default_value' => undef }),
  Optional[String]
          $sshkey          = lookup({ 'name' => 'openssh::keys::sshkey', 'default_value' => undef }),
  Optional[Array[Openssh::SshKey]]
          $custom_ssh_keys = lookup({ 'name' => 'openssh::keys::custom_ssh_keys', 'default_value' => undef }),
) {
  include openssh
  class { 'openssh::package':
    manage_client => true,
    manage_server => true,
  }
  class { 'openssh::config': }
  class { 'openssh::keys':
    sshkey_propagate => false,
    sshkey_name      => $sshkey_name,
    sshkey           => $sshkey,
    custom_ssh_keys  => $custom_ssh_keys,
  }
  class { 'openssh::service': }

  Class['openssh::config'] ~> Class['openssh::service']
}