airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject airavata git commit: AIRAVATA-2517 Applying Keycloak MySQL config to HA too
Date Fri, 06 Oct 2017 21:40:07 GMT
Repository: airavata
Updated Branches:
  refs/heads/AIRAVATA-2517-keycloak-mysql-connections [created] 5c12e9467


AIRAVATA-2517 Applying Keycloak MySQL config to HA too


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/5c12e946
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/5c12e946
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/5c12e946

Branch: refs/heads/AIRAVATA-2517-keycloak-mysql-connections
Commit: 5c12e94674acfc827f84b860072b087f9dccf084
Parents: 124558d
Author: Marcus Christie <machristie@apache.org>
Authored: Fri Oct 6 17:39:41 2017 -0400
Committer: Marcus Christie <machristie@apache.org>
Committed: Fri Oct 6 17:39:41 2017 -0400

----------------------------------------------------------------------
 .../ansible/roles/keycloak/templates/standalone-ha.xml.j2      | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/5c12e946/dev-tools/ansible/roles/keycloak/templates/standalone-ha.xml.j2
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/keycloak/templates/standalone-ha.xml.j2 b/dev-tools/ansible/roles/keycloak/templates/standalone-ha.xml.j2
index 8cea55a..e6fa3e8 100644
--- a/dev-tools/ansible/roles/keycloak/templates/standalone-ha.xml.j2
+++ b/dev-tools/ansible/roles/keycloak/templates/standalone-ha.xml.j2
@@ -136,6 +136,12 @@
                         <user-name>{{keycloak_db_username}}</user-name>
                         <password>{{keycloak_db_password}}</password>
                     </security>
+                    <validation>
+                        <check-valid-connection-sql>select 1</check-valid-connection-sql>
+                        <validate-on-match>false</validate-on-match>
+                        <background-validation>true</background-validation>
+                        <background-validation-millis>10000</background-validation-millis>
+                    </validation>
                 </datasource>
                 <drivers>
 		            <driver name="mysql" module="org.mysql">


Mime
View raw message