]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
Do not refresh APT lists on every run.
authorintrigeri <intrigeri@boum.org>
Wed, 10 Nov 2010 13:44:01 +0000 (14:44 +0100)
committerintrigeri <intrigeri@boum.org>
Wed, 10 Nov 2010 13:44:01 +0000 (14:44 +0100)
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

index 1247b45fba048ae85855adb001f7011fd1f3af45..cdcd142ff6bbac9b06679275d5342d3efe4b87eb 100644 (file)
@@ -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'] ],