Defined Type: wildfly::config::user_roles

Defined in:
manifests/config/user_roles.pp

Overview

Manages roles for an Application User (`application-roles.properties`).

Parameters:

  • groups

    List of roles to associate with this user.

  • roles (String)


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

define wildfly::config::user_roles(String $roles) {

  file_line { "${title}:${roles}":
    path   => "${wildfly::dirname}/${wildfly::mode}/configuration/application-roles.properties",
    line   => "${title}=${roles}",
    match  => "^${title}=.*\$",
    notify => Service['wildfly'],
  }

}