From c7d2bdcee35ba2437afde066a23ed416354dd339 Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Fri, 21 Apr 2023 15:12:59 -0500 Subject: [PATCH] add configurability for XA transactions --- roles/keycloak_quarkus/defaults/main.yml | 3 +++ roles/keycloak_quarkus/meta/argument_specs.yml | 4 ++++ roles/keycloak_quarkus/templates/keycloak.conf.j2 | 3 +++ 3 files changed, 10 insertions(+) diff --git a/roles/keycloak_quarkus/defaults/main.yml b/roles/keycloak_quarkus/defaults/main.yml index f51ce59..371180e 100644 --- a/roles/keycloak_quarkus/defaults/main.yml +++ b/roles/keycloak_quarkus/defaults/main.yml @@ -52,6 +52,9 @@ keycloak_quarkus_frontend_url: http://localhost:8080/auth # proxy address forwarding mode if the server is behind a reverse proxy. [edge, reencrypt, passthrough] keycloak_quarkus_proxy_mode: edge +# disable xa transactions +keycloak_quarkus_transaction_xa_enabled: True + keycloak_quarkus_metrics_enabled: False keycloak_quarkus_health_enabled: True diff --git a/roles/keycloak_quarkus/meta/argument_specs.yml b/roles/keycloak_quarkus/meta/argument_specs.yml index 9205cef..8c27fb2 100644 --- a/roles/keycloak_quarkus/meta/argument_specs.yml +++ b/roles/keycloak_quarkus/meta/argument_specs.yml @@ -248,3 +248,7 @@ argument_specs: default: False type: "bool" description: "Whether to start the service in development mode (start-dev)" + keycloak_quarkus_transaction_xa_enabled: + default: True + type: bool" + description: "Enable or disable XA transactions which may not be supported by some DBMS" diff --git a/roles/keycloak_quarkus/templates/keycloak.conf.j2 b/roles/keycloak_quarkus/templates/keycloak.conf.j2 index bd9f5bf..600e9d1 100644 --- a/roles/keycloak_quarkus/templates/keycloak.conf.j2 +++ b/roles/keycloak_quarkus/templates/keycloak.conf.j2 @@ -39,6 +39,9 @@ proxy={{ keycloak_quarkus_proxy_mode }} # Do not attach route to cookies and rely on the session affinity capabilities from reverse proxy #spi-sticky-session-encoder-infinispan-should-attach-route=false +# Transaction +transaction-xa-enabled={{ keycloak_quarkus_transaction_xa_enabled }} + # Logging #log-format=%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n log={{ keycloak_quarkus_log }}