Skip to content

Commit

Permalink
Merge pull request #236 from weaselp/master
Browse files Browse the repository at this point in the history
Add Debian 12 support
  • Loading branch information
ekohl authored Oct 29, 2023
2 parents 76e8314 + 0cbeec7 commit 61c78ca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
23 changes: 10 additions & 13 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,16 @@

case downcase($facts['os']['name']) {
'debian', 'raspbian': {
case fact('os.distro.codename') {
'bullseye': {
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename}-security,label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
}
default: {
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename},label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
}
if versioncmp($facts['os']['release']['major'], '11') >= 0 {
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename}-security,label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
} else {
$origins = [
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
'origin=Debian,codename=${distro_codename},label=Debian-Security', #lint:ignore:single_quote_string_with_variables
]
}
}
'ubuntu', 'neon': {
Expand Down
3 changes: 2 additions & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"operatingsystem": "Debian",
"operatingsystemrelease": [
"10",
"11"
"11",
"12"
]
},
{
Expand Down
4 changes: 3 additions & 1 deletion spec/classes/other_debians_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
name: 'Raspbian',
family: 'Debian',
release: {
full: '8.0'
full: '8.0',
major: '8',
minor: '0'
}
},
osfamily: 'Debian',
Expand Down

0 comments on commit 61c78ca

Please sign in to comment.