diff --git a/manifests/init.pp b/manifests/init.pp
index 20e84025..f8e37d37 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -60,6 +60,8 @@
# EHCache configuration for clustered mode
# @param use_jndi_ds
# If true, the database will be configured as JNDI datasource in server.xml and then referenced in dbconfig.xml
+# @param use_ucp
+# If true, the database will be configured with oracles ucp connection driver
# @param jndi_ds_name
# Configures the JNDI datasource name
# @param db
@@ -310,6 +312,7 @@
Optional[Stdlib::Port] $ehcache_object_port = undef,
# Database Settings
Boolean $use_jndi_ds = false,
+ Boolean $use_ucp = false,
String[1] $jndi_ds_name = 'JiraDS',
Enum['postgresql','mysql','sqlserver','oracle','h2'] $db = 'postgresql',
String $dbuser = 'jiraadm',
@@ -517,7 +520,7 @@
true => { password => $plugin_data['password'] }
}
$_plugin_archive = {
- $target => $_target_defaults + $_username + $_password
+ $target => $_target_defaults + $_username + $_password,
}
create_resources(archive, $_plugin_archive)
}
diff --git a/templates/server.xml.epp b/templates/server.xml.epp
index a271964e..e85977d2 100644
--- a/templates/server.xml.epp
+++ b/templates/server.xml.epp
@@ -117,6 +117,18 @@
factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60"/>
<% if $jira::use_jndi_ds { %>
+ <% if $jira::use_ucp { -%>
+
+ <% } else { -%>
+ <% } -%>
<% } -%>