|
22 | 22 | $default_upgradeable_packages = { 'download_only' => 0, 'debdelta' => 1, } |
23 | 23 |
|
24 | 24 | 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 | + ] |
37 | 30 | } |
38 | | - 'ubuntu', 'neon': { |
| 31 | + |
| 32 | + 'ubuntu': { |
39 | 33 | # 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 = [ |
42 | 35 | 'origin=${distro_id},suite=${distro_codename}', #lint:ignore:single_quote_string_with_variables |
43 | 36 | 'origin=${distro_id},suite=${distro_codename}-security', #lint:ignore:single_quote_string_with_variables |
44 | 37 | 'origin=${distro_id}ESMApps,suite=${distro_codename}-apps-security', #lint:ignore:single_quote_string_with_variables |
45 | 38 | 'origin=${distro_id}ESM,suite=${distro_codename}-infra-security', #lint:ignore:single_quote_string_with_variables |
46 | 39 | ] |
47 | 40 | } |
48 | | - 'LinuxMint': { |
49 | | - $origins = ['origin=${distro_id},suite=${distro_codename}-security',] #lint:ignore:single_quote_string_with_variables |
50 | | - } |
| 41 | + |
51 | 42 | default: { |
52 | | - $origins = undef |
| 43 | + $origins = undef |
53 | 44 | } |
54 | 45 | } |
55 | 46 | } |
0 commit comments