From: intrigeri Date: Wed, 10 Nov 2010 13:44:01 +0000 (+0100) Subject: Do not refresh APT lists on every run. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=06a2957f9f0c2b4060709150afa194b98c6995ba;p=puppet-apt.git Do not refresh APT lists on every run. Let's set refreshonly on the 'update_apt' Exec (aliased to 'apt_updated') instead of removing it for backward compatibility: it may be in use at some places to trigger updates. --- diff --git a/manifests/init.pp b/manifests/init.pp index 1247b45..cdcd142 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -145,6 +145,7 @@ class apt { Config_file['/etc/apt/sources.list'] ]; 'update_apt': command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean', + refreshonly => true, require => [ File['/etc/apt/apt.conf.d', '/etc/apt/preferences'], Config_file['/etc/apt/sources.list'] ],