diff --git a/defaults/main.yml b/defaults/main.yml index 38c5e37..7989aa8 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -85,7 +85,10 @@ keycloak_reverse_proxy_infinispan_attach_route: 'true' keycloak_cluster: false keycloak_cache_type: ispn keycloak_cache_stack: tcp +keycloak_jgroups_cache_hostname: "{{ ansible_fqdn }}" keycloak_cache_container_name: keycloak -keycloak_jgroups_multicast_port: '46655' -keycloak_jgroups_multicast_address: '228.6.7.8' -keycloak_jgroups_multicast_net: '224.0.0.1' +keycloak_jgroups_multicast_port: 46655 +keycloak_jgroups_multicast_address: 228.6.7.8 +keycloak_jgroups_bind_port: 55200 +keycloak_jgroups_extended_stack: false +keycloak_jgroups_extended_stack_name: "extended-{{ keycloak_cache_stack }}" diff --git a/templates/cache-ispn.xml.j2 b/templates/cache-ispn.xml.j2 index a7243bf..2e58d76 100644 --- a/templates/cache-ispn.xml.j2 +++ b/templates/cache-ispn.xml.j2 @@ -21,8 +21,35 @@ xsi:schemaLocation="urn:infinispan:config:11.0 http://www.infinispan.org/schemas/infinispan-config-11.0.xsd" xmlns="urn:infinispan:config:11.0"> +{% if keycloak_jgroups_extended_stack %} + + + + + + +{% endif %} - + diff --git a/templates/keycloak.conf.j2 b/templates/keycloak.conf.j2 index 65d641a..8ff1b5d 100644 --- a/templates/keycloak.conf.j2 +++ b/templates/keycloak.conf.j2 @@ -49,6 +49,7 @@ spi-avatar-storage-avatar-storage-file-avatar-folder={{ keycloak_external_avatar spi-sticky-session-encoder-infinispan-should-attach-route={{ keycloak_reverse_proxy_infinispan_attach_route }} cache={{ keycloak_cache_type }} cache-stack={{ keycloak_cache_stack }} +cache-config-file={{ keycloak_conf_directory }}/cache-ispn.xml {% endif %} # Logging log={{ keycloak_log_handlers }}