File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 189
189
# Hash that is used to define keycloak_ldap_user_provider resources.
190
190
# @param ldap_user_providers_merge
191
191
# Boolean that sets if `ldap_user_providers` should be merged from Hiera.
192
+ # @param role_mappings
193
+ # Hash that is used to define keycloak_role_mapping resources.
194
+ # @param role_mapping_merge
195
+ # Boolean that sets if `role_mappings` should be merged from Hiera.
192
196
# @param with_sssd_support
193
197
# Boolean that determines if SSSD user provider support should be available
194
198
# @param libunix_dbus_java_source
299
303
Hash $ldap_mappers = {},
300
304
Boolean $ldap_mappers_merge = false ,
301
305
Hash $ldap_user_providers = {},
306
+ Hash $role_mappings = {},
307
+ Boolean $role_mapping_merge = false ,
302
308
Boolean $ldap_user_providers_merge = false ,
303
309
Boolean $flow_executions_merge = false ,
304
310
Boolean $with_sssd_support = false ,
Original file line number Diff line number Diff line change 63
63
} else {
64
64
$ldap_user_providers = $keycloak::ldap_user_providers
65
65
}
66
+ if $keycloak::role_mapping_merge {
67
+ $role_mappings = lookup(' keycloak::role_mappings' , Hash, ' deep' , {})
68
+ } else {
69
+ $role_mappings = $keycloak::role_mappings
70
+ }
66
71
67
72
$realms .each |$name , $realm | {
68
73
keycloak_realm { $name: * => $realm }
103
108
$ldap_user_providers .each |$name , $data | {
104
109
keycloak_ldap_user_provider { $name: * => $data }
105
110
}
111
+ $role_mappings .each |$name , $data | {
112
+ keycloak_role_mapping { $name: * => $data }
113
+ }
106
114
$keycloak::spi_deployments .each |$name , $deployment | {
107
115
keycloak::spi_deployment { $name: * => $deployment }
108
116
}
You can’t perform that action at this time.
0 commit comments