Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
secrets: "inherit"
with:
runs_on: "ubuntu-20.04"
flags: "--exclude-platforms '[\"Ubuntu-22.04-arm\", \"RedHat-9-arm\"]'"
flags: "--exclude-platforms '[\"Ubuntu-22.04-arm\", \"RedHat-9-arm\", \"Debian-12-arm\"]'"
6 changes: 3 additions & 3 deletions manifests/adopt.pp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
if ( $_version_int == 8 ) {
$_release_minor_package_name = $release_minor
} else {
$_release_minor_package_name = "_${release_minor}"
$_release_minor_package_name = "_${release_minor.split(/\./)[0]}"
}

case $_package_type {
Expand Down Expand Up @@ -251,8 +251,6 @@
$destination = "${destination_dir}${package_name}"
notice ("Destination is ${destination}")

$install_command = ['tar', '-zxf', $destination, '-C', $_basedir]

case $ensure {
'present' : {
archive { $destination :
Expand Down Expand Up @@ -288,6 +286,8 @@
}
}

$install_command = ['tar', '-zxf', $destination, '-C', $_basedir]

exec { "Install AdoptOpenJDK java ${java} ${_version} ${release_major} ${release_minor}" :
path => '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin',
command => $install_command,
Expand Down
45 changes: 26 additions & 19 deletions spec/acceptance/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,28 +102,21 @@
# We need to test version 8 and >8 (here we use 9), because namings are different after version 8

adopt_enabled = true unless os[:family].casecmp('SLES').zero?
adopt_version8_major = '8'
adopt_version8_minor = '202'
adopt_version8_build = '08'
adopt_version9_major = '9'
adopt_version9_full = '9.0.4'
adopt_version9_build = '11'
case os[:arch]
when 'aarch64', 'arm64'
adopt_version9_full = '9'
adopt_version9_build = '181'
else
adopt_version9_full = '9.0.4'
adopt_version9_build = '11'
end

adopt_version10_major = '10'
adopt_version10_full = '10.0.2'
adopt_version10_build = '13.1'

install_adopt_jdk_jre = <<MANIFEST
java::adopt {
'test_adopt_jre_version8':
version => '#{adopt_version8_major}',
version_major => '#{adopt_version8_major}u#{adopt_version8_minor}',
version_minor => 'b#{adopt_version8_build}',
java => 'jre',
}
java::adopt {
'test_adopt_jdk_version8':
version => '#{adopt_version8_major}',
version_major => '#{adopt_version8_major}u#{adopt_version8_minor}',
version_minor => 'b#{adopt_version8_build}',
java => 'jdk',
}
java::adopt {
'test_adopt_jre_version9':
version => '#{adopt_version9_major}',
Expand All @@ -138,6 +131,20 @@
version_minor => '#{adopt_version9_build}',
java => 'jdk',
}
java::adopt {
'test_adopt_jre_version10':
version => '#{adopt_version10_major}',
version_major => '#{adopt_version10_full}',
version_minor => '#{adopt_version10_build}',
java => 'jre',
}
java::adopt {
'test_adopt_jdk_version10':
version => '#{adopt_version10_major}',
version_major => '#{adopt_version10_full}',
version_minor => '#{adopt_version10_build}',
java => 'jdk',
}
MANIFEST

# Adoptium
Expand Down
Loading