Puppet Class: ssh

Defined in:
manifests/init.pp

Overview

This class serves as a data collection class for the rest of the modules here, as well as managing the permissions on the SSH configuration directory. This class should need to be included explicitly, as it is included by the classes that require it.

Examples:

include ssh

Parameters:

  • ssh_dir (String)

    The path to the directory containing the config files

  • sshd_config (String)

    The path to the sshd_config(5) file

  • ssh_config (String)

    The path to the ssh_config(5) file

  • known_hosts (String)

    The path to the known_hosts file for the system

  • root_group (String)

    The name of the root group

  • ssh_packages (Array)

    A list of packages to install

  • ssh_service (String)
  • service_hasrestart (Boolean)


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

class ssh (
  String $ssh_dir,
  String $sshd_config,
  String $ssh_config,
  String $ssh_service,
  String $known_hosts,
  String $root_group,
  Boolean $service_hasrestart,
  Array $ssh_packages,
){

  include ssh::install

  concat { $ssh_config:
    owner   => 'root',
    group   => '0',
    mode    => '0644',
    require => Class['ssh::install'],
  }
}