From 70f13c4aba8c9ec6b689d1616151b1d62ca26204 Mon Sep 17 00:00:00 2001 From: Guido Grazioli Date: Mon, 20 Dec 2021 15:55:52 +0100 Subject: [PATCH] Disambiguate core-identifiers, set correct bind for jgroups --- .../templates/standalone-infinispan.xml.j2 | 7 +++++-- .../templates/standalone-rhsso-jdg.xml.j2 | 15 +++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/roles/keycloak/templates/standalone-infinispan.xml.j2 b/roles/keycloak/templates/standalone-infinispan.xml.j2 index fd97e84..b62eed0 100644 --- a/roles/keycloak/templates/standalone-infinispan.xml.j2 +++ b/roles/keycloak/templates/standalone-infinispan.xml.j2 @@ -509,6 +509,9 @@ PRIMARY KEY (own_addr, cluster_name)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin + INSERT INTO JGROUPSPING (own_addr, cluster_name, ping_data) values (?, ?, ?) + DELETE FROM JGROUPSPING WHERE own_addr=? AND cluster_name=? + SELECT ping_data FROM JGROUPSPING WHERE cluster_name=? @@ -675,7 +678,7 @@ - + @@ -715,7 +718,7 @@ - + diff --git a/roles/keycloak/templates/standalone-rhsso-jdg.xml.j2 b/roles/keycloak/templates/standalone-rhsso-jdg.xml.j2 index af69585..7f1fa6a 100644 --- a/roles/keycloak/templates/standalone-rhsso-jdg.xml.j2 +++ b/roles/keycloak/templates/standalone-rhsso-jdg.xml.j2 @@ -384,7 +384,7 @@ - {% for cachename in [ "sessions", "offlineSessions", "clientSessions", "offlineClientSessions", "loginFailures", "actionTokens" ] %} +{% for cachename in [ "sessions", "offlineSessions", "clientSessions", "offlineClientSessions", "loginFailures", "actionTokens" ] %} {{ keycloak_remotecache.trust_store_password | default("changeme") }} - {% endfor %} +{% endfor %} + INSERT INTO JGROUPSPING (own_addr, cluster_name, ping_data) values (?, ?, ?) + DELETE FROM JGROUPSPING WHERE own_addr=? AND cluster_name=? + SELECT ping_data FROM JGROUPSPING WHERE cluster_name=? @@ -675,7 +678,7 @@ - + @@ -715,7 +718,7 @@ - + @@ -734,11 +737,11 @@ -{% if keycloak_modcluster.enabled %} +{% if keycloak_modcluster.enabled %} -{% endif %} +{% endif %}