Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/keycloak/resources.pp
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | $flows.each |$flow_data| { | ||||
id => $flow_execution_id, | id => $flow_execution_id, | ||||
index => $idx, | index => $idx, | ||||
* => $flow_execution_data, | * => $flow_execution_data, | ||||
} | } | ||||
$idx = $idx + 1 | $idx = $idx + 1 | ||||
} | } | ||||
} | } | ||||
$client_scopes = pick($realm_data['client_scopes'], {}) | |||||
$realm_client_scope_common_settings = deep_merge( | |||||
$client_scope_common_settings, | |||||
pick($realm_data['client_scope_settings'], {}) | |||||
) | |||||
$client_scopes.each |$client_scope_name, $client_scope_data| { | |||||
$_local_client_scope_settings = pick($client_scope_data['settings'], {}) | |||||
$_full_client_scope_settings = deep_merge($realm_client_scope_common_settings, $_local_client_scope_settings) | |||||
$client_scope_id = fqdn_uuid("${realm_name}.${client_scope_name}") | |||||
keycloak_client_scope {"${client_scope_name} on ${realm_name}": | |||||
ensure => present, | |||||
id => $client_scope_id, | |||||
* => $_full_client_scope_settings, | |||||
} | |||||
} | |||||
$clients = pick($realm_data['clients'], {}) | $clients = pick($realm_data['clients'], {}) | ||||
$realm_client_common_settings = deep_merge($client_common_settings, | $realm_client_common_settings = deep_merge($client_common_settings, | ||||
pick($realm_data['client_settings'], {})) | pick($realm_data['client_settings'], {})) | ||||
$clients.each |$client_name, $client_data| { | $clients.each |$client_name, $client_data| { | ||||
$_local_client_settings = pick($client_data['settings'], {}) | $_local_client_settings = pick($client_data['settings'], {}) | ||||
$_full_client_settings = deep_merge($realm_client_common_settings, $_local_client_settings) | $_full_client_settings = deep_merge($realm_client_common_settings, $_local_client_settings) | ||||
Show All 27 Lines |