Defined Type: wildfly::security::login_module

Defined in:
manifests/security/login_module.pp

Overview

This is the login-module configuration for a security domain Multiple login-modules can be specified for a single security domain.

domain_name

Name of the security domain to be created on the Wildfly server.

code

Login module code to use. See: docs.jboss.org/author/display/WFLY9/Authentication+Modules

flag

The flag controls how the module participates in the overall procedure. Allowed values are: `requisite`, `required`, `sufficient` or `optional`. Default: `required`.

module_options

A hash of module options containing name/value pairs. E.g.: `{ 'name1' => 'value1', 'name2' => 'value2' }` or in Hiera: “`

module_options:
 name1: value1
 name2: value2

“`

Parameters:

  • domain (Any)
  • code (Any)
  • flag (Any)
  • module_options (Any) (defaults to: {})


24
25
26
27
28
29
30
31
32
33
34
# File 'manifests/security/login_module.pp', line 24

define wildfly::security::login_module($domain, $code, $flag, $module_options={}) {

  wildfly::resource { "/subsystem=security/security-domain=${domain}/authentication=classic/login-module=${code}":
    content => {
      'code'           => $code,
      'flag'           => $flag,
      'module-options' => $module_options,
    },
  }

}