Created
November 24, 2016 07:45
-
-
Save iperdomo/53d0eedeb1eac19d8d65f928740f1377 to your computer and use it in GitHub Desktop.
Change discovery protocol to GOOGLE_PING - Keycloak's standalone-ha.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:jg="urn:jboss:domain:jgroups:4.0"> | |
<xsl:output method="xml" indent="yes" /> | |
<xsl:variable name="access_key">${env.GOOGLE_ACCESS_KEY}</xsl:variable> | |
<xsl:variable name="secret">${env.GOOGLE_SECRET}</xsl:variable> | |
<xsl:variable name="location">${env.GOOGLE_LOCATION}</xsl:variable> | |
<xsl:template match="//jg:subsystem/jg:stacks/jg:stack[@name='udp']/jg:protocol[@type='PING']"> | |
<protocol type="GOOGLE_PING" | |
access_key="{$access_key}" | |
secret="{$secret}" | |
location="{$location}" | |
break_on_coord_rsp="true"/> | |
</xsl:template> | |
<xsl:template match="@*|node()"> | |
<xsl:copy> | |
<xsl:apply-templates select="@*|node()"/> | |
</xsl:copy> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment