Defined Type: bsdauth::class

Defined in:
manifests/class.pp

Overview

Define a login class.

Examples:

Declaring a login class

include ::bsdauth
::bsdauth::class { 'example':
  capabilities => [
    'auth=yubikey,passwd,skey',
    'tc=auth-defaults',
  ],
}

Parameters:

  • capabilities (Array[String, 1])

    The list of capabilities defined by the login class.

  • class (String) (defaults to: $title)

    The name of the login class.

  • order (Variant[String, Integer[0]]) (defaults to: '10')

    The order of the class within login.conf.

See Also:



17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/class.pp', line 17

define bsdauth::class (
  Array[String, 1]            $capabilities,
  String                      $class        = $title,
  Variant[String, Integer[0]] $order        = '10',
) {

  ::concat::fragment { "${module_name} ${class}":
    content => template("${module_name}/class.erb"),
    order   => $order,
    target  => '/etc/login.conf',
  }
}