airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [15/16] airavata git commit: AIRAVATA-2517 Keycloak MySQL conn. validation
Date Fri, 06 Oct 2017 21:32:58 GMT
AIRAVATA-2517 Keycloak MySQL conn. validation


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

Branch: refs/heads/develop
Commit: 124558d7d6fcb93338c1ebc24d2ead484ca04967
Parents: e0b64eb
Author: Marcus Christie <machristie@apache.org>
Authored: Fri Oct 6 15:47:40 2017 -0400
Committer: Marcus Christie <machristie@apache.org>
Committed: Fri Oct 6 15:47:40 2017 -0400

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


http://git-wip-us.apache.org/repos/asf/airavata/blob/124558d7/dev-tools/ansible/roles/keycloak/templates/standalone.xml.j2
----------------------------------------------------------------------
diff --git a/dev-tools/ansible/roles/keycloak/templates/standalone.xml.j2 b/dev-tools/ansible/roles/keycloak/templates/standalone.xml.j2
index 1f3b5ff..cf4aebe 100644
--- a/dev-tools/ansible/roles/keycloak/templates/standalone.xml.j2
+++ b/dev-tools/ansible/roles/keycloak/templates/standalone.xml.j2
@@ -141,6 +141,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