]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
[feat] Remove `apt-get autoclean` from apt::update
authorvarac <varacanero@zeromail.org>
Tue, 26 Jan 2016 13:52:53 +0000 (14:52 +0100)
committervarac <varacanero@zeromail.org>
Mon, 1 Feb 2016 19:25:50 +0000 (20:25 +0100)
`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

index f9f935757fc99d2fa51c4a37c197cc8e5ca165df..d6e75cc408ee4b47752600711f9a4a4301f4d0ed 100644 (file)
@@ -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'] ],