Skip to content

Commit 6a22f84

Browse files
mikaspan786
authored andcommitted
Add support for Debian 13 (trixie)
Debian v13 AKA trixie was released on 2025-08-09 as Debian's new stable release.
1 parent 14108f6 commit 6a22f84

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

manifests/params.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
default => $facts['os']['architecture']
5959
}
6060
case $facts['os']['release']['major'] {
61+
'13': {
62+
$openjdk = 21
63+
}
6164
'12', '24.04': {
6265
$openjdk = 17
6366
}

metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"operatingsystemrelease": [
4646
"10",
4747
"11",
48-
"12"
48+
"12",
49+
"13"
4950
]
5051
},
5152
{

spec/classes/java_spec.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,24 @@
4646
end
4747
end
4848

49+
context 'on Debian Trixie (13)' do
50+
let(:facts) { { os: { family: 'Debian', name: 'Debian', lsb: { distcodename: 'trixie' }, release: { major: '13' }, architecture: 'amd64' } } }
51+
52+
context 'when selecting jdk' do
53+
let(:params) { { 'distribution' => 'jdk' } }
54+
55+
it { is_expected.to contain_package('java').with_name('openjdk-21-jdk') }
56+
it { is_expected.to contain_file_line('java-home-environment').with_line('JAVA_HOME=/usr/lib/jvm/java-1.21.0-openjdk-amd64/') }
57+
end
58+
59+
context 'when selecting jre' do
60+
let(:params) { { 'distribution' => 'jre' } }
61+
62+
it { is_expected.to contain_package('java').with_name('openjdk-21-jre-headless') }
63+
it { is_expected.to contain_file_line('java-home-environment').with_line('JAVA_HOME=/usr/lib/jvm/java-1.21.0-openjdk-amd64/') }
64+
end
65+
end
66+
4967
context 'on Ubuntu Bionic (18.04)' do
5068
let(:facts) { { os: { family: 'Debian', name: 'Ubuntu', lsb: { distcodename: 'bionic' }, release: { major: '18.04' }, architecture: 'amd64' } } }
5169

0 commit comments

Comments
 (0)