Skip to content

Commit

Permalink
Use the new remote-store options
Browse files Browse the repository at this point in the history
  • Loading branch information
pruivo committed Feb 8, 2024
1 parent 1d50ca7 commit 262c8d9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
8 changes: 4 additions & 4 deletions provision/minikube/keycloak/templates/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ spec:
value: 'true'
{{- if .Values.infinispan.remoteStore.enabled }}
# tag::keycloak-ispn[]
- name: remote-store-host # <2>
- name: cache-remote-host # <2>
value: {{ quote .Values.infinispan.remoteStore.host }}
- name: remote-store-port # <2>
- name: cache-remote-port # <2>
value: {{ quote .Values.infinispan.remoteStore.port }}
- name: remote-store-username # <3>
- name: cache-remote-username # <3>
secret:
name: remote-store-secret
key: username
- name: remote-store-password # <3>
- name: cache-remote-password # <3>
secret:
name: remote-store-secret
key: password
Expand Down
21 changes: 13 additions & 8 deletions provision/rosa-cross-dc/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,16 +279,9 @@ tasks:
KC_ADMIN_PASSWORD:
sh: "aws secretsmanager get-secret-value --region eu-central-1 --secret-id keycloak-master-password --query SecretString --output text --no-cli-pager || echo admin"
KC_DATABASE: "aurora-postgres"
KC_CUSTOM_INFINISPAN_CONFIG: "true"
KC_CUSTOM_INFINISPAN_CONFIG_FILE: "config/kcb-infinispan-cache-remote-store-config.xml"
KC_CUSTOM_INFINISPAN_CONFIG: "false"
KC_ISPN_CLUSTER: "infinispan"
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME}}"
- task: wait-cryostat
vars:
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME}}"
- task: wait-keycloak
vars:
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME}}"

wait-keycloak:
desc: "Waits for Keycloak conditions"
Expand Down Expand Up @@ -356,6 +349,18 @@ tasks:
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME_2}}"
KC_HOSTNAME_OVERRIDE: "{{.KC_CLIENT_URL}}"
KC_HEALTH_HOSTNAME: "{{.KC_HEALTH_URL_CLUSTER_2}}"
- task: wait-cryostat
vars:
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME_1}}"
- task: wait-cryostat
vars:
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME_2}}"
- task: wait-keycloak
vars:
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME_1}}"
- task: wait-keycloak
vars:
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME_2}}"
- task: create-env-configmap
vars:
ROSA_CLUSTER_NAME: "{{.ROSA_CLUSTER_NAME_1}}"
Expand Down

0 comments on commit 262c8d9

Please sign in to comment.