2023-11-19 00:19:16 +01:00
|
|
|
data "keycloak_user" "rad4day" {
|
|
|
|
realm_id = data.keycloak_realm.realm.id
|
|
|
|
username = "rad4day"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "keycloak_user_groups" "rad4day_groups" {
|
|
|
|
realm_id = data.keycloak_realm.realm.id
|
|
|
|
user_id = data.keycloak_user.rad4day.id
|
|
|
|
exhaustive = true
|
|
|
|
group_ids = [
|
|
|
|
module.giteaclient.access_group.id,
|
|
|
|
module.giteaclient.admin_group.id,
|
|
|
|
module.grafanaclient.access_group.id,
|
|
|
|
module.grafanaclient.admin_group.id,
|
2023-12-06 12:57:35 +01:00
|
|
|
module.minioclient.access_group.id,
|
2023-11-19 00:19:16 +01:00
|
|
|
module.hedgedocclient.access_group.id,
|
|
|
|
module.minifluxclient.access_group.id,
|
|
|
|
module.synapseclient.access_group.id,
|
|
|
|
module.seafileclient.access_group.id,
|
2024-01-15 20:42:58 +01:00
|
|
|
module.gotosocialclient.access_group.id,
|
|
|
|
module.gotosocialclient.admin_group.id,
|
2023-12-27 16:12:10 +01:00
|
|
|
data.keycloak_group.proxypass.id,
|
2023-11-19 00:19:16 +01:00
|
|
|
]
|
|
|
|
}
|
2023-12-06 12:57:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
resource "keycloak_user_roles" "rad4day_roles" {
|
2023-12-22 15:44:02 +01:00
|
|
|
realm_id = data.keycloak_realm.realm.id
|
|
|
|
user_id = data.keycloak_user.rad4day.id
|
2023-12-06 12:57:35 +01:00
|
|
|
|
|
|
|
role_ids = [
|
2023-12-22 15:44:02 +01:00
|
|
|
data.keycloak_role.default_role.id,
|
2023-12-06 12:57:35 +01:00
|
|
|
keycloak_role.minio-consoleAdmin.id,
|
|
|
|
]
|
|
|
|
}
|