[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.
This commit is contained in:
parent
f12b007edd
commit
d2ae98e89b
1 changed files with 1 additions and 1 deletions
|
@ -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'] ],
|
||||
|
|
Loading…
Reference in a new issue