From d2ae98e89b4f1a552eb7464f217aa809ac68666b Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 26 Jan 2016 14:52:53 +0100 Subject: [feat] Remove `apt-get autoclean` from apt::update `apt-get autoclean` should not be run on every puppetrun when including `apt::update`, but rather be configured as a `APT::Periodic` task that is run by cron, see https://wiki.debian.org/UnattendedUpgrades. --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index f9f9357..d6e75cc 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -139,7 +139,7 @@ class apt( file { [ '/var/cache', '/var/cache/local', '/var/cache/local/preseeding' ]: ensure => directory } exec { 'update_apt': - command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean', + command => '/usr/bin/apt-get update', require => [ File['/etc/apt/apt.conf.d', '/etc/apt/preferences' ], File['/etc/apt/sources.list'] ], -- cgit v1.2.3