Update `50unattended-upgrades` and deploy
This commit is contained in:
parent
a773b4a1b5
commit
78b98cdab6
|
@ -129,3 +129,15 @@ Unattended-Upgrade::Automatic-Reboot "false";
|
||||||
|
|
||||||
// Allow package downgrade if Pin-Priority exceeds 1000
|
// Allow package downgrade if Pin-Priority exceeds 1000
|
||||||
// Unattended-Upgrade::Allow-downgrade "false";
|
// Unattended-Upgrade::Allow-downgrade "false";
|
||||||
|
|
||||||
|
// When APT fails to mark a package to be upgraded or installed try adjusting
|
||||||
|
// candidates of related packages to help APT's resolver in finding a solution
|
||||||
|
// where the package can be upgraded or installed.
|
||||||
|
// This is a workaround until APT's resolver is fixed to always find a
|
||||||
|
// solution if it exists. (See Debian bug #711128.)
|
||||||
|
// The fallback is enabled by default, except on Debian's sid release because
|
||||||
|
// uninstallable packages are frequent there.
|
||||||
|
// Disabling the fallback speeds up unattended-upgrades when there are
|
||||||
|
// uninstallable packages at the expense of rarely keeping back packages which
|
||||||
|
// could be upgraded or installed.
|
||||||
|
// Unattended-Upgrade::Allow-APT-Mark-Fallback "true";
|
||||||
|
|
|
@ -45,7 +45,7 @@ when "18.04"
|
||||||
not_if 'test -e /var/log/cron-apt/log'
|
not_if 'test -e /var/log/cron-apt/log'
|
||||||
end
|
end
|
||||||
|
|
||||||
when '20.04'
|
when '20.04', '22.04'
|
||||||
%w(20auto-upgrades 50unattended-upgrades).each do |conf|
|
%w(20auto-upgrades 50unattended-upgrades).each do |conf|
|
||||||
remote_file "/etc/apt/apt.conf.d/#{conf}" do
|
remote_file "/etc/apt/apt.conf.d/#{conf}" do
|
||||||
owner 'root'
|
owner 'root'
|
||||||
|
|
Loading…
Reference in New Issue