Skip to content

Commit

Permalink
Fixup adding support for security.keycloak.realm_display_name key (#1054
Browse files Browse the repository at this point in the history
)
  • Loading branch information
costrouc committed Feb 11, 2022
1 parent 81c6c34 commit fa89caf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion qhub/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,11 +603,13 @@ def _attempt_keycloak_connection(

def provision_06_kubernetes_keycloak_configuration(stage_outputs, config, check=True):
directory = "stages/06-kubernetes-keycloak-configuration"
realm_id = f"qhub-{config['project_name']}"

stage_outputs[directory] = terraform.deploy(
directory=directory,
input_vars={
"realm": f"qhub-{config['project_name']}",
"realm": realm_id,
"realm_display_name": config['security']['keycloak'].get('realm_display_name', realm_id),
"authentication": config["security"]["authentication"],
},
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
resource "keycloak_realm" "main" {
provider = keycloak

realm = var.realm
realm = var.realm
display_name = var.realm_display_name
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ variable "realm" {
type = string
}

variable "realm_display_name" {
description = "Keycloak realm display name for QHub"
type = string
}

variable "keycloak_groups" {
description = "Permission groups in keycloak used for granting access to services"
type = set(string)
Expand Down

0 comments on commit fa89caf

Please sign in to comment.