Skip to content

Commit

Permalink
Add enable_connection_pooling deprecation note
Browse files Browse the repository at this point in the history
  • Loading branch information
oranenj committed Apr 13, 2021
1 parent 5c81088 commit 09aaa81
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
$mysql_connector_format = 'tar.gz',
Stdlib::Absolutepath $mysql_connector_install = '/opt/MySQL-connector',
Stdlib::HTTPUrl $mysql_connector_url = 'https://dev.mysql.com/get/Downloads/Connector-J',
Optional[Integer[0]] $poolsize = undef,
Optional[Integer[0]] $pool_min_size = undef,
Optional[Integer[0]] $pool_max_size = undef,
Optional[Integer[-1]] $pool_max_wait = undef,
Expand All @@ -94,7 +93,6 @@
Optional[String] $jvm_gc_args = undef,
Optional[String] $jvm_codecache_args = undef,
Integer $jvm_nofiles_limit = 16384,
Optional[String] $java_opts = undef,
String $catalina_opts = '',
# Misc Settings
Stdlib::HTTPUrl $download_url = 'https://product-downloads.atlassian.com/software/jira/downloads',
Expand Down Expand Up @@ -163,11 +161,19 @@
String $session_tokenkey = 'session.tokenkey',
Integer $session_validationinterval = 5,
String $session_lastvalidation = 'session.lastvalidation',
# Deprecated parameters
Optional[Integer[0]] $poolsize = undef,
Optional[String] $java_opts = undef,
Optional[Boolean] $enable_connection_pooling = undef,
) inherits jira::params {
if $datacenter and !$shared_homedir {
fail("\$shared_homedir must be set when \$datacenter is true")
}

if $enable_connection_pooling != undef {
deprecation('jira::enable_connection_pooling', 'jira::enable_connection_pooling has been removed and does nothing. Please simply configure the connection pooling parameters')
}

if $java_opts {
deprecation('jira::java_opts', 'jira::java_opts is deprecated. Please use jira::jvm_extra_args')
$jvm_extra_args_real = "${java_opts} ${jvm_extra_args}"
Expand Down

0 comments on commit 09aaa81

Please sign in to comment.