Update apt to 7.3.0
It now includes unattended-upgrades support
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Cookbook:: apt
|
||||
# Recipe:: cacher-client
|
||||
#
|
||||
# Copyright:: 2011-2017, Chef Software, Inc.
|
||||
# Copyright:: 2011-2019, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -49,4 +49,4 @@ else
|
||||
t.run_action(:create) if node['apt']['compiletime']
|
||||
end
|
||||
|
||||
include_recipe 'apt::default'
|
||||
include_recipe 'apt::default' # rubocop: disable ChefModernize/IncludingAptDefaultRecipe
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Cookbook:: apt
|
||||
# Recipe:: cacher-ng
|
||||
#
|
||||
# Copyright:: 2008-2017, Chef Software, Inc.
|
||||
# Copyright:: 2008-2019, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the 'License');
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
# Cookbook:: apt
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright:: 2008-2017, Chef Software, Inc.
|
||||
# Copyright:: 2009-2017, Bryan McLellan <btm@loftninjas.org>
|
||||
# Copyright:: 2008-2019, Chef Software, Inc.
|
||||
# Copyright:: 2009-2019, Bryan McLellan <btm@loftninjas.org>
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the 'License');
|
||||
# you may not use this file except in compliance with the License.
|
||||
@@ -42,8 +42,7 @@ apt_update 'periodic' do
|
||||
end
|
||||
|
||||
# For other recipes to call to force an update
|
||||
execute 'apt-get update' do
|
||||
command 'apt-get update'
|
||||
execute 'apt-get update' do # rubocop: disable ChefModernize/ExecuteAptUpdate
|
||||
ignore_failure true
|
||||
action :nothing
|
||||
notifies :touch, 'file[/var/lib/apt/periodic/update-success-stamp]', :immediately
|
||||
@@ -93,6 +92,6 @@ template '/etc/apt/apt.conf.d/10recommends' do
|
||||
only_if { apt_installed? }
|
||||
end
|
||||
|
||||
package 'apt-transport-https' do
|
||||
package %w(apt-transport-https gnupg dirmngr) do
|
||||
only_if { apt_installed? }
|
||||
end
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Cookbook:: apt
|
||||
# Recipe:: unattended-upgrades
|
||||
#
|
||||
# Copyright:: 2014-2017, Chef Software, Inc.
|
||||
# Copyright:: 2014-2019, Chef Software, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the 'License');
|
||||
# you may not use this file except in compliance with the License.
|
||||
|
||||
Reference in New Issue
Block a user