Skip to content

Commit 9e01121

Browse files
committed
Drop code for unsupported and untested OSes
1 parent a5934ab commit 9e01121

File tree

3 files changed

+11
-54
lines changed

3 files changed

+11
-54
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ altering some of the default settings.
191191
192192
## Limitations
193193
194-
This module should work across all versions of Debian, Ubuntu, and Linux Mint.
194+
This module should work across all versions of Debian and Ubuntu.
195195
196196
## License
197197

manifests/params.pp

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,25 @@
2222
$default_upgradeable_packages = { 'download_only' => 0, 'debdelta' => 1, }
2323

2424
case downcase($facts['os']['name']) {
25-
'debian', 'raspbian': {
26-
if versioncmp($facts['os']['release']['major'], '11') >= 0 {
27-
$origins = [
28-
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
29-
'origin=Debian,codename=${distro_codename}-security,label=Debian-Security', #lint:ignore:single_quote_string_with_variables
30-
]
31-
} else {
32-
$origins = [
33-
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
34-
'origin=Debian,codename=${distro_codename},label=Debian-Security', #lint:ignore:single_quote_string_with_variables
35-
]
36-
}
25+
'debian': {
26+
$origins = [
27+
'origin=Debian,codename=${distro_codename},label=Debian', #lint:ignore:single_quote_string_with_variables
28+
'origin=Debian,codename=${distro_codename}-security,label=Debian-Security', #lint:ignore:single_quote_string_with_variables
29+
]
3730
}
38-
'ubuntu', 'neon': {
31+
32+
'ubuntu': {
3933
# Ubuntu: https://ubuntu.com/about/release-cycle and https://wiki.ubuntu.com/Releases
40-
# Ubuntu 18.04 and up do allow the use of Origins-Pattern; 16.04 is out of support for Vox Pupuli.
41-
$origins = [
34+
$origins = [
4235
'origin=${distro_id},suite=${distro_codename}', #lint:ignore:single_quote_string_with_variables
4336
'origin=${distro_id},suite=${distro_codename}-security', #lint:ignore:single_quote_string_with_variables
4437
'origin=${distro_id}ESMApps,suite=${distro_codename}-apps-security', #lint:ignore:single_quote_string_with_variables
4538
'origin=${distro_id}ESM,suite=${distro_codename}-infra-security', #lint:ignore:single_quote_string_with_variables
4639
]
4740
}
48-
'LinuxMint': {
49-
$origins = ['origin=${distro_id},suite=${distro_codename}-security',] #lint:ignore:single_quote_string_with_variables
50-
}
41+
5142
default: {
52-
$origins = undef
43+
$origins = undef
5344
}
5445
}
5546
}

spec/classes/other_debians_spec.rb

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)