diff --git a/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-install-ha.cli b/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-install-ha.cli new file mode 100644 index 0000000000..6f91806c8f --- /dev/null +++ b/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-install-ha.cli @@ -0,0 +1,11 @@ +/subsystem=datasources/data-source=KeycloakDS/:add(connection-url="jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE",driver-name=h2,jndi-name=java:jboss/datasources/KeycloakDS,password=sa,user-name=sa,use-java-context=true,enabled=true) +/subsystem=logging/logger=org.jboss.resteasy.resteasy_jaxrs.i18n/:add(level=ERROR) +/subsystem=infinispan/cache-container=keycloak:add(jndi-name="infinispan/Keycloak") +/subsystem=infinispan/cache-container=keycloak/transport=TRANSPORT:add(lock-timeout=60000) +/subsystem=infinispan/cache-container=keycloak/invalidation-cache=realms:add(mode="SYNC") +/subsystem=infinispan/cache-container=keycloak/invalidation-cache=users:add(mode="SYNC") +/subsystem=infinispan/cache-container=keycloak/distributed-cache=sessions:add(mode="SYNC",owners="1") +/subsystem=infinispan/cache-container=keycloak/distributed-cache=loginFailures:add(mode="SYNC",owners="1") +:shutdown(restart=true) +/extension=org.keycloak.keycloak-server-subsystem/:add(module=org.keycloak.keycloak-server-subsystem) +/subsystem=keycloak-server:add(web-context=auth) \ No newline at end of file diff --git a/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-install.cli b/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-install.cli index cc594313f9..59ed0529c3 100644 --- a/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-install.cli +++ b/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-install.cli @@ -1,2 +1,10 @@ +/subsystem=datasources/data-source=KeycloakDS/:add(connection-url="jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE",driver-name=h2,jndi-name=java:jboss/datasources/KeycloakDS,password=sa,user-name=sa,use-java-context=true,enabled=true) +/subsystem=logging/logger=org.jboss.resteasy.resteasy_jaxrs.i18n/:add(level=ERROR) +/subsystem=infinispan/cache-container=keycloak:add(jndi-name="infinispan/Keycloak",start="EAGER") +/subsystem=infinispan/cache-container=keycloak/local-cache=realms:add() +/subsystem=infinispan/cache-container=keycloak/local-cache=users:add() +/subsystem=infinispan/cache-container=keycloak/local-cache=sessions:add() +/subsystem=infinispan/cache-container=keycloak/local-cache=loginFailures:add() +:shutdown(restart=true) /extension=org.keycloak.keycloak-server-subsystem/:add(module=org.keycloak.keycloak-server-subsystem) /subsystem=keycloak-server:add(web-context=auth) \ No newline at end of file diff --git a/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-prepare.cli b/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-prepare.cli deleted file mode 100644 index 000cbfa3d8..0000000000 --- a/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-prepare.cli +++ /dev/null @@ -1,2 +0,0 @@ -/subsystem=datasources/data-source=KeycloakDS/:add(connection-url="jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE",driver-name=h2,jndi-name=java:jboss/datasources/KeycloakDS,password=sa,user-name=sa,use-java-context=true,enabled=true) -/subsystem=logging/logger=org.jboss.resteasy.resteasy_jaxrs.i18n/:add(level=ERROR) \ No newline at end of file diff --git a/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install-ha.cli b/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install-ha.cli new file mode 100644 index 0000000000..c26baf7f95 --- /dev/null +++ b/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install-ha.cli @@ -0,0 +1,10 @@ +/subsystem=datasources/data-source=KeycloakDS/:add(connection-url="jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE",driver-name=h2,jndi-name=java:jboss/datasources/KeycloakDS,password=sa,user-name=sa,use-java-context=true) +/subsystem=infinispan/cache-container=keycloak:add(jndi-name="infinispan/Keycloak") +/subsystem=infinispan/cache-container=keycloak/transport=TRANSPORT:add(lock-timeout=60000) +/subsystem=infinispan/cache-container=keycloak/invalidation-cache=realms:add(mode="SYNC") +/subsystem=infinispan/cache-container=keycloak/invalidation-cache=users:add(mode="SYNC") +/subsystem=infinispan/cache-container=keycloak/distributed-cache=sessions:add(mode="SYNC",owners="1") +/subsystem=infinispan/cache-container=keycloak/distributed-cache=loginFailures:add(mode="SYNC",owners="1") +:shutdown(restart=true) +/extension=org.keycloak.keycloak-server-subsystem/:add(module=org.keycloak.keycloak-server-subsystem) +/subsystem=keycloak-server:add(web-context=auth) \ No newline at end of file diff --git a/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install.cli b/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install.cli index ac5ca0b81c..6de3e24b1e 100644 --- a/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install.cli +++ b/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install.cli @@ -1,3 +1,9 @@ /subsystem=datasources/data-source=KeycloakDS/:add(connection-url="jdbc:h2:${jboss.server.data.dir}/keycloak;AUTO_SERVER=TRUE",driver-name=h2,jndi-name=java:jboss/datasources/KeycloakDS,password=sa,user-name=sa,use-java-context=true) +/subsystem=infinispan/cache-container=keycloak:add(jndi-name="infinispan/Keycloak") +/subsystem=infinispan/cache-container=keycloak/local-cache=realms:add() +/subsystem=infinispan/cache-container=keycloak/local-cache=users:add() +/subsystem=infinispan/cache-container=keycloak/local-cache=sessions:add() +/subsystem=infinispan/cache-container=keycloak/local-cache=loginFailures:add() +:shutdown(restart=true) /extension=org.keycloak.keycloak-server-subsystem/:add(module=org.keycloak.keycloak-server-subsystem) /subsystem=keycloak-server:add(web-context=auth) \ No newline at end of file