Defined Type: ssh::allowgroup

Defined in:
manifests/allowgroup.pp

Overview

Class: ssh::allowgroup

Allows a group the ability to shell into a give node.

Parameters:

  • group (String[1]) (defaults to: $title)

    A list of group name patterns, separated by spaces, to only allow members of those group(s) to login.



6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/allowgroup.pp', line 6

define ssh::allowgroup (
  String[1] $group = $title,
) {
  include ssh::server

  concat::fragment { "ssh::params::sshd_config AllowGroups ${group}":
    order   => "50 ${group}",
    target  => 'ssh::params::sshd_config',
    content => ssh::fix_eol("AllowGroups ${group}\n"),
  }
}