Puppet Class: ssh::params

Inherited by:
ssh::client
ssh::server
Defined in:
manifests/params.pp

Overview

Class: ssh::params



2
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
# File 'manifests/params.pp', line 2

class ssh::params {
    $ensure             = present
    $ensure_running     = true
    $ensure_enabled     = true
    $manage_config      = true
    $manage_hostkey     = false
    $manage_known_hosts = true
    $config_template    = 'ssh/sshd_config.erb'
    $permit_root_login  = 'no'
    $listen_address     = '0.0.0.0'
    $hostkey_name       = $::fqdn
    $hostaliases        = undef

    $options            = {}

    case $::osfamily {
        'Debian': {
            $service_name = 'ssh'
            $client_package = 'openssh-client'
        }
        'RedHat': {
            $service_name = 'sshd'
            $client_package = 'openssh-clients'
        }
        default: {
            fail('unsupported platform')
        }
    }

}