From db25a81d23cf88bc4991edbce27b3b2ac020c7a4 Mon Sep 17 00:00:00 2001 From: Tomas Kyjovsky Date: Tue, 9 Feb 2016 05:20:19 +0100 Subject: [PATCH] KEYCLOAK-1678 Added module for building wildfly mod_cluster load balancer. --- .../integration-arquillian/servers/pom.xml | 1 + .../servers/wildfly-balancer/assembly.xml | 46 +++++++ .../servers/wildfly-balancer/pom.xml | 118 ++++++++++++++++++ .../src/main/xslt/mod_cluster.xsl | 73 +++++++++++ 4 files changed, 238 insertions(+) create mode 100644 testsuite/integration-arquillian/servers/wildfly-balancer/assembly.xml create mode 100644 testsuite/integration-arquillian/servers/wildfly-balancer/pom.xml create mode 100644 testsuite/integration-arquillian/servers/wildfly-balancer/src/main/xslt/mod_cluster.xsl diff --git a/testsuite/integration-arquillian/servers/pom.xml b/testsuite/integration-arquillian/servers/pom.xml index a164099c19..a4a3c81b60 100644 --- a/testsuite/integration-arquillian/servers/pom.xml +++ b/testsuite/integration-arquillian/servers/pom.xml @@ -44,6 +44,7 @@ auth-server-wildfly-cluster wildfly + wildfly-balancer diff --git a/testsuite/integration-arquillian/servers/wildfly-balancer/assembly.xml b/testsuite/integration-arquillian/servers/wildfly-balancer/assembly.xml new file mode 100644 index 0000000000..a3e36ae773 --- /dev/null +++ b/testsuite/integration-arquillian/servers/wildfly-balancer/assembly.xml @@ -0,0 +1,46 @@ + + + + + wildfly-balancer + + + zip + + + false + + + + ${wildfly.balancer.home} + wildfly-balancer-${project.version} + + **/*.sh + + + + ${wildfly.balancer.home} + wildfly-balancer-${project.version} + + **/*.sh + + 0755 + + + + diff --git a/testsuite/integration-arquillian/servers/wildfly-balancer/pom.xml b/testsuite/integration-arquillian/servers/wildfly-balancer/pom.xml new file mode 100644 index 0000000000..895be72eb1 --- /dev/null +++ b/testsuite/integration-arquillian/servers/wildfly-balancer/pom.xml @@ -0,0 +1,118 @@ + + + + + + org.keycloak.testsuite + integration-arquillian-servers + 1.9.0.Final-SNAPSHOT + + 4.0.0 + + integration-arquillian-server-wildfly-balancer + pom + Wildfly Load Balancer + + + ${project.build.directory}/unpacked/wildfly-${wildfly.version} + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-wildfly + generate-resources + + unpack + + + + + org.wildfly + wildfly-dist + ${wildfly.version} + zip + ${project.build.directory}/unpacked + + + + + + + + + org.codehaus.mojo + xml-maven-plugin + + + configure-mod-cluster + process-resources + + transform + + + + + ${wildfly.balancer.home}/standalone/configuration + + standalone.xml + + src/main/xslt/mod_cluster.xsl + ${wildfly.balancer.home}/standalone/configuration + + + + + + + + + maven-assembly-plugin + + + create-zip + package + + single + + + + assembly.xml + + false + + + + + + + + diff --git a/testsuite/integration-arquillian/servers/wildfly-balancer/src/main/xslt/mod_cluster.xsl b/testsuite/integration-arquillian/servers/wildfly-balancer/src/main/xslt/mod_cluster.xsl new file mode 100644 index 0000000000..9cb3774a74 --- /dev/null +++ b/testsuite/integration-arquillian/servers/wildfly-balancer/src/main/xslt/mod_cluster.xsl @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file