From 09c9c0bcdbb9c2b1a0f715631fe8abcef9995789 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 27 Feb 2018 16:52:33 +0100 Subject: [PATCH] library/roles/tomcat-multiple-instances/templates/tomcat-context.xml.j2: Support more than one db target in the jndi configuration. --- .../templates/tomcat-context.xml.j2 | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/tomcat-multiple-instances/templates/tomcat-context.xml.j2 b/tomcat-multiple-instances/templates/tomcat-context.xml.j2 index b2cd9e57..ba40c066 100644 --- a/tomcat-multiple-instances/templates/tomcat-context.xml.j2 +++ b/tomcat-multiple-instances/templates/tomcat-context.xml.j2 @@ -32,6 +32,29 @@ --> {% if tomcat_m_jndi_pool %} +{% if tomcat_jndi_pool_databases is defined %} +{% for pool in tomcat_jndi_pool_databases %} + + +{% endfor %} +{% else %} +{% endif %} +{% endif %} +