Defined Type: wildfly::security::group_role_mapping

Defined in:
manifests/security/group_role_mapping.pp

Overview

Parameters:

  • role (Any)
  • group (Any) (defaults to: $title)
  • realm (Any) (defaults to: undef)


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/security/group_role_mapping.pp', line 2

define wildfly::security::group_role_mapping (
  $role,
  $group = $title,
  $realm = undef,
) {
  $_group = upcase($group)

  wildfly::resource { "/core-service=management/access=authorization/role-mapping=${role}/include=group-${_group}":
    content => {
      'name'  => $group,
      'realm' => $realm,
      'type'  => 'GROUP',
    },
  }
}