From 06a2957f9f0c2b4060709150afa194b98c6995ba Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 10 Nov 2010 14:44:01 +0100 Subject: 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. --- manifests/init.pp | 1 + 1 file changed, 1 insertion(+) (limited to 'manifests/init.pp') 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'] ], -- cgit v1.2.3