2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'manifests/params.pp', line 2
class unattended_upgrades::params {
if $facts['os']['family'] != 'Debian' {
fail('This module only works on Debian or derivatives like Ubuntu')
}
$default_auto = { 'fix_interrupted_dpkg' => true, 'remove' => true, 'reboot' => false, 'reboot_withusers' => true, 'clean' => 0, 'reboot_time' => 'now', }
$default_mail = { 'only_on_error' => true, }
$default_backup = { 'archive_interval' => 0, 'level' => 3, }
$default_age = { 'min' => 2, 'max' => 0, }
$default_upgradeable_packages = { 'download_only' => 0, 'debdelta' => 1, }
case downcase($facts['os']['name']) {
'debian', 'raspbian': {
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': {
# Ubuntu: https://ubuntu.com/about/release-cycle and https://wiki.ubuntu.com/Releases
# Ubuntu 18.04 and up do allow the use of Origins-Pattern; 16.04 is out of support for Vox Pupuli.
$origins = [
'origin=${distro_id},suite=${distro_codename}', #lint:ignore:single_quote_string_with_variables
'origin=${distro_id},suite=${distro_codename}-security', #lint:ignore:single_quote_string_with_variables
'origin=${distro_id}ESMApps,suite=${distro_codename}-apps-security', #lint:ignore:single_quote_string_with_variables
'origin=${distro_id}ESM,suite=${distro_codename}-infra-security', #lint:ignore:single_quote_string_with_variables
]
}
'LinuxMint': {
$origins = ['origin=${distro_id},suite=${distro_codename}-security',] #lint:ignore:single_quote_string_with_variables
}
default: {
$origins = undef
}
}
}
|