diff options
author | varac <varacanero@zeromail.org> | 2016-01-26 14:52:53 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-02-01 20:49:14 +0100 |
commit | c5c7191665c653573558fc0f84262e31b065bbb3 (patch) | |
tree | 0d58b54d5c139c9abc157d95babfeded37540b45 | |
parent | 474c5f8e9a88ad1edf3b00c90356c88a6c92c18a (diff) |
[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.
-rw-r--r-- | manifests/init.pp | 2 |
1 files changed, 1 insertions, 1 deletions
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'] ], |