Defined Type: wildfly::security::user_role_mapping
- Defined in:
- manifests/security/user_role_mapping.pp
Overview
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'manifests/security/user_role_mapping.pp', line 2
define wildfly::security::user_role_mapping (
$role,
$username = $title,
$realm = undef,
) {
$_username = upcase($username)
wildfly::resource { "/core-service=management/access=authorization/role-mapping=${role}/include=user-${_username}":
content => {
'name' => $username,
'realm' => $realm,
'type' => 'USER',
},
}
}
|