Puppet Class: openssh

Defined in:
manifests/init.pp

Summary

Configure openssh server

Overview

Parameters:

  • users (Hash[String, Array[String]]) (defaults to: [])

    defines user/key mappings

  • sudoers (Array[String]) (defaults to: [])

    defines users that can sudo to root



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

class openssh (
  Hash[String, Array[String]] $users = [],
  Array[String] $sudoers = [],
) {
  case $facts['os']['family'] {
    'Archlinux': { include openssh::systemd }
    'Arch': { include openssh::systemd }
    'Debian': { include openssh::systemd }
    default: { fail("module does not support ${facts['os']['family']}") }
  }
}