Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
eb70543
Adding <%- if ( scope.function_versioncmp([@version, '7.12.1']) > 0 &…
hallkj-github Jul 10, 2019
4e87821
Merge pull request #1 from cpepe/APPARCH-137---Jira-relaxedPathChars
hallkj-github Jul 10, 2019
eb5c8e5
Adding validation_query_timeout to init manifest and dbconfig for mysql
hallkj-github Aug 6, 2019
815b0b8
Merge pull request #2 from cpepe/CUMULUS-16---validation-query-timeout
cpepe Aug 6, 2019
fabd4f1
Reverting changes of last PR
hallkj-github Aug 6, 2019
7108f60
Merge pull request #3 from cpepe/CUMULUS-16---validation-query-timeout
cpepe Aug 6, 2019
87fc23e
Adding valve to jira for stuck threads
Jan 22, 2020
28cf981
Adding valve and making it conditional on threshold time
Jan 22, 2020
af2038d
Merge pull request #4 from cpepe/Add-Jira-valve
hallkj-github Jan 22, 2020
ef6f170
Correcting quotes in new valve change
Jan 23, 2020
7743cd7
Merge pull request #5 from cpepe/Add-Jira-valve
hallkj-github Jan 23, 2020
ca8c08a
Adding in parameter to disable PrintGCDateStamps with if statement
hallkj-github Jul 20, 2020
c9d7a16
Adding in parameter to disable PrintGCDateStamps
hallkj-github Jul 20, 2020
d68c7eb
Merge pull request #6 from cpepe/PRAE-16502---Disable-PrintGCDateStamps
cpepe Jul 21, 2020
22e1086
Adding support for Linux 2 AMI EC2s
hallkj-github Jan 25, 2021
cfebe89
Merge pull request #7 from cpepe/CUMULUS-204---Puppet-support-for-Lin…
cpepe Jan 26, 2021
fb1b958
Adding in tcpalive and socket timeout to dbconfig template for 8.20 v…
hallkj-github Mar 16, 2022
4509c08
Merge pull request #8 from cpepe/PCS-44210-DBKeepAlive
cpepe Mar 17, 2022
6a7f362
Adding tcpkeepalive database variable and setting default setting to 240
hallkj-github May 12, 2022
1a8e428
Merge pull request #9 from cpepe/PCS-47012---tcpKeepAlive
cpepe May 12, 2022
31415e6
Update setenv.sh.erb
hallkj-github Jan 23, 2025
9b84f79
Merge pull request #10 from cpepe/Java17-Fix
hallkj-github Jan 23, 2025
2de41c9
UTF-8 param in jira
hallkj-github Aug 19, 2025
ee9dd09
Update setenv.sh.erb
hallkj-github Aug 19, 2025
108875f
Update setenv.sh.erb
hallkj-github Aug 19, 2025
0d445c5
Merge pull request #11 from cpepe/hallkj-github-patch-1
hallkj-github Aug 19, 2025
296f399
Update setenv.sh.erb
hallkj-github Aug 19, 2025
2beb4d5
UTF8
hallkj-github Aug 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@
$pool_remove_abandoned_timeout = 300,
$pool_test_while_idle = true,
$pool_test_on_borrow = false,
$tcpkeepalive = 240,
# JVM Settings
$javahome = undef,
$jvm_xms = '256m',
$jvm_xmx = '1024m',
$jvm_permgen = '256m',
$jvm_optional = '-XX:-HeapDumpOnOutOfMemoryError',
$jvm_optional = '-XX:-HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps',
$java_opts = '',
$catalina_opts = '',
# Misc Settings
Expand Down Expand Up @@ -131,6 +132,7 @@
$tomcat_keystore_pass = 'changeit',
Enum['JKS', 'JCEKS', 'PKCS12'] $tomcat_keystore_type = 'JKS',
$tomcat_accesslog_format = '%a %{jira.request.id}r %{jira.request.username}r %t &quot;%m %U%q %H&quot; %s %b %D &quot;%{Referer}i&quot; &quot;%{User-Agent}i&quot; &quot;%{jira.request.assession.id}r&quot;',
$tomcat_stuckvalve_threshold = '180',
# Tomcat Tunables
$tomcat_max_threads = '150',
$tomcat_accept_count = '100',
Expand Down
6 changes: 6 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
$service_file_template = 'jira/jira.initscript.erb'
$service_lockfile = '/var/lock/subsys/jira'
$service_provider = undef
} elsif $facts['operatingsystem'] == 'Amazon' and $facts['operatingsystemmajrelease'] =='2' {
$json_packages = [ 'rubygem-json' ]
$service_file_location = '/usr/lib/systemd/system/jira.service'
$service_file_template = 'jira/jira.service.erb'
$service_lockfile = '/var/lock/subsys/jira'
$service_provider = 'systemd'
} elsif versioncmp($facts['operatingsystemmajrelease'], '7') >= 0 {
$json_packages = [ 'rubygem-json' ]
$service_file_location = '/usr/lib/systemd/system/jira.service'
Expand Down
1 change: 1 addition & 0 deletions templates/dbconfig.postgresql.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
<pool-test-while-idle><%= scope.lookupvar('jira::pool_test_while_idle') %></pool-test-while-idle>
<pool-test-on-borrow><%= scope.lookupvar('jira::pool_test_on_borrow') %></pool-test-on-borrow>
<% end -%>
<connection-properties>tcpKeepAlive=true;socketTimeout=<%= scope.lookupvar('jira::tcpkeepalive') %></connection-properties>
</jdbc-datasource>
</jira-database-config>
10 changes: 10 additions & 0 deletions templates/server.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
<%- if @tomcat_address -%>
address="<%= @tomcat_address %>"
<%- end -%>
<%- if ( scope.function_versioncmp([@version, '7.12.1']) > 0 && @product =~ /^jira/ ) or @product =~ /^servicedesk/ -%>
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
<%- end -%>
maxThreads="<%= @tomcat_max_threads %>"
minSpareThreads="<%= @tomcat_min_spare_threads %>"
connectionTimeout="<%= @tomcat_connection_timeout %>"
Expand Down Expand Up @@ -77,6 +81,10 @@
<%- if @tomcat_address -%>
address="<%= @tomcat_address %>"
<%- end -%>
<%- if ( scope.function_versioncmp([@version, '7.12.1']) > 0 && @product =~ /^jira/ ) or @product =~ /^servicedesk/ -%>
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;"
<%- end -%>
maxHttpHeaderSize="<%= @tomcat_max_http_header_size %>"
SSLEnabled="true"
maxThreads="<%= @tomcat_max_threads %>"
Expand Down Expand Up @@ -126,6 +134,8 @@
<Valve className="org.apache.catalina.valves.AccessLogValve" resolveHosts="false"
pattern="<%= @tomcat_accesslog_format %>"/>

<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="<%= @tomcat_stuckvalve_threshold %>" />

</Engine>
</Service>
</Server>
6 changes: 5 additions & 1 deletion templates/setenv.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#
JIRA_HOME="<%= scope.lookupvar('jira::homedir') %>"

export LC_ALL="en_US.UTF-8"

#
# Additional JAVA_OPTS
#
Expand Down Expand Up @@ -47,7 +49,9 @@ DISABLE_NOTIFICATIONS=" -Datlassian.mail.senddisabled=true -Datlassian.mail.fetc
# This allows us to actually debug GC related issues by correlating timestamps
# with other parts of the application logs.
#-----------------------------------------------------------------------------------
JVM_EXTRA_ARGS="-XX:+PrintGCDateStamps"
JVM_EXTRA_ARGS=""

JVM_OPENS=$(cat $PRGDIR/java-opens.txt)

PRGDIR=`dirname "$0"`
cat "${PRGDIR}"/jirabanner.txt
Expand Down