aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-11-10 14:44:01 +0100
committerintrigeri <intrigeri@boum.org>2010-11-10 14:44:01 +0100
commit06a2957f9f0c2b4060709150afa194b98c6995ba (patch)
tree2d81d0a9ea63d9518916667876686a0b1a8abfb3
parent2cd9496999af2dd00a203f38c4e1f4393c7f3f62 (diff)
downloadpuppet-apt-06a2957f9f0c2b4060709150afa194b98c6995ba.tar.gz
puppet-apt-06a2957f9f0c2b4060709150afa194b98c6995ba.tar.bz2
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.
-rw-r--r--manifests/init.pp1
1 files changed, 1 insertions, 0 deletions
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'] ],