Skip to content

Commit 7d94fe2

Browse files
remove java 1.8 support
1 parent 6395abd commit 7d94fe2

File tree

6 files changed

+5
-23
lines changed

6 files changed

+5
-23
lines changed

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# JVM Settings
88
$javahome = undef,
9-
Enum['openjdk-11', 'oracle-jdk-1.8', 'custom'] $jvm_type = 'openjdk-11',
9+
Enum['openjdk-11', 'custom'] $jvm_type = 'openjdk-11',
1010
$jvm_xms = '256m',
1111
$jvm_xmx = '1024m',
1212
$jvm_permgen = '256m',

spec/acceptance/1_default_parameters_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
cleanup => true,
2424
} ->
2525
class { 'confluence':
26-
version => '5.5.6',
27-
jvm_type => 'oracle-jdk-1.8',
26+
version => '8.5.12',
27+
jvm_type => 'openjdk-11',
2828
download_url => fact('download_url'),
2929
javahome => $jh,
3030
}

spec/acceptance/2_default_parameters_upgrade_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
} ->
2525
class { 'confluence':
2626
version => '5.7',
27-
jvm_type => 'oracle-jdk-1.8',
27+
jvm_type => 'openjdk-11',
2828
download_url => fact('download_url'),
2929
javahome => $jh,
3030
}

spec/acceptance/3_custom_parameters_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
} ->
2525
class { 'confluence':
2626
version => '5.7',
27-
jvm_type => 'oracle-jdk-1.8',
27+
jvm_type => 'openjdk-11',
2828
download_url => fact('download_url'),
2929
javahome => $jh,
3030
tomcat_port => '8091',

spec/classes/confluence_config_spec.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,22 +252,6 @@
252252
end
253253
end
254254

255-
context 'java 8 specific option' do
256-
let(:params) do
257-
{
258-
version: '7.12.0',
259-
javahome: '/opt/java',
260-
jvm_type: 'oracle-jdk-1.8'
261-
}
262-
end
263-
264-
it do
265-
is_expected.to compile.with_all_deps
266-
is_expected.to contain_file('/opt/confluence/atlassian-confluence-7.12.0/bin/setenv.sh').
267-
with_content(%r{CATALINA_OPTS="-XX:-PrintGCDetails -XX:\+PrintGCDateStamps -XX:-PrintTenuringDistribution \${CATALINA_OPTS}"})
268-
end
269-
end
270-
271255
context 'manage_user set to true' do
272256
let(:params) do
273257
{

templates/setenv.sh.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ CATALINA_OPTS="-Xlog:gc+age=debug:file=$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.l
9090
<%- end -%>
9191
<%- if scope.lookupvar('confluence::jvm_type') == 'openjdk-11' -%>
9292
CATALINA_OPTS="-XX:+ExplicitGCInvokesConcurrent -XX:+PrintGCDateStamps ${CATALINA_OPTS}"
93-
<%- elsif scope.lookupvar('confluence::jvm_type') == 'oracle-jdk-1.8' -%>
94-
CATALINA_OPTS="-XX:-PrintGCDetails -XX:+PrintGCDateStamps -XX:-PrintTenuringDistribution ${CATALINA_OPTS}"
9593
<%- end -%>
9694
CATALINA_OPTS="-Xloggc:$LOGBASEABS/logs/gc-`date +%F_%H-%M-%S`.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M ${CATALINA_OPTS}"
9795
CATALINA_OPTS="-XX:G1ReservePercent=20 ${CATALINA_OPTS}"

0 commit comments

Comments
 (0)