diff --git a/distribution/server-overlay/eap6/eap6-server-overlay/assembly.xml b/distribution/server-overlay/eap6/eap6-server-overlay/assembly.xml
index 1ead8b9e8e..1d978dde84 100755
--- a/distribution/server-overlay/eap6/eap6-server-overlay/assembly.xml
+++ b/distribution/server-overlay/eap6/eap6-server-overlay/assembly.xml
@@ -40,6 +40,14 @@
standalone/configuration/providers
+
+
+ bin
+
+
+
+ bin
+
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
new file mode 100644
index 0000000000..cc594313f9
--- /dev/null
+++ b/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-install.cli
@@ -0,0 +1,2 @@
+/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
new file mode 100644
index 0000000000..000cbfa3d8
--- /dev/null
+++ b/distribution/server-overlay/eap6/eap6-server-overlay/cli/keycloak-prepare.cli
@@ -0,0 +1,2 @@
+/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/eap6/eap6-server-overlay/src/main/xslt/standalone.xsl b/distribution/server-overlay/eap6/eap6-server-overlay/src/main/xslt/standalone.xsl
index 69ea1c1f00..519b4a71b6 100755
--- a/distribution/server-overlay/eap6/eap6-server-overlay/src/main/xslt/standalone.xsl
+++ b/distribution/server-overlay/eap6/eap6-server-overlay/src/main/xslt/standalone.xsl
@@ -44,22 +44,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/distribution/server-overlay/wf9-server-overlay/assembly.xml b/distribution/server-overlay/wf9-server-overlay/assembly.xml
index 4d87e6912e..e7fcb1b112 100755
--- a/distribution/server-overlay/wf9-server-overlay/assembly.xml
+++ b/distribution/server-overlay/wf9-server-overlay/assembly.xml
@@ -62,6 +62,10 @@
standalone/configuration
+
+
+ bin
+
diff --git a/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install.cli b/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install.cli
new file mode 100644
index 0000000000..ac5ca0b81c
--- /dev/null
+++ b/distribution/server-overlay/wf9-server-overlay/cli/keycloak-install.cli
@@ -0,0 +1,3 @@
+/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)
+/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/docbook/reference/en/en-US/modules/server-installation.xml b/docbook/reference/en/en-US/modules/server-installation.xml
index 9584852177..6b39bf664f 100755
--- a/docbook/reference/en/en-US/modules/server-installation.xml
+++ b/docbook/reference/en/en-US/modules/server-installation.xml
@@ -49,9 +49,9 @@
keycloak-overlay-&project.version;.zip or keycloak-overlay-&project.version;.tar.gz.
Once downloaded extract into the root directory of your WildFly installation. To start WildFly with Keycloak
run:
- keycloak-&project.version;/bin/standalone.sh --server-config=standalone-keycloak.xml
+ <WILDFLY_HOME>/bin/standalone.sh --server-config=standalone-keycloak.xml
or:
- keycloak-&project.version;/bin/standalone.bat --server-config=standalone-keycloak.xml
+ <WILDFLY_HOME>/bin/standalone.bat --server-config=standalone-keycloak.xml
Once the server is started log into the admin console at
@@ -60,15 +60,9 @@
enter in a new password.
- To add Keycloak to other sever configurations (standalone.xml, standalone-ha.xml, etc.) open
- standalone/configuration/standalone-keycloak.xml and the configuration you want to add it
- to, for example standalone/configuration/standalone.xml. From standalone-keycloak.xml
- you need to copy 3 elements:
-
- <extension module="org.keycloak.keycloak-server-subsystem"/>
- <datasource jndi-name="java:jboss/datasources/KeycloakDS" ...>
- <subsystem xmlns="urn:jboss:domain:keycloak-server:1.1" ...>
-
+ To add Keycloak to other sever configurations (standalone.xml, standalone-ha.xml, etc.) start the server with
+ the desired server-config. Then execute the following CLI script:
+ <WILDFLY_HOME>/bin/jboss-cli.sh -c --file=keycloak-install.cli
@@ -76,6 +70,19 @@
Same procedure as WildFly 9.0.0.Final, but download keycloak-overlay-eap6-&project.version;.zip or keycloak-overlay-eap6-&project.version;.tar.gz.
+
+ However, for EAP, adding Keycloak to other sever configurations (standalone.xml, standalone-ha.xml, etc.) requires two CLI scripts. Start the server with
+ the desired server-config. Then execute the following CLI scripts with a restart in between:
+
+
+ <EAP_HOME>/bin/jboss-cli.sh -c --file=keycloak-prepare.cli
+
+ Restart the server with the same server-config.
+
+ <EAP_HOME>/bin/jboss-cli.sh -c --file=keycloak-install.cli
+
+
+ Install Development Bundle