module-puppetlabs-apt/manifests/update.pp
Nan Liu 3684f88372 (#11966) Only invoke apt-get update once.
Move apt-get update exec to a seperate class to minimize the number of
apt-get updates invoked by configuration changes.

* remove apt_update exec resource in apt class.
* remove apt-get-${name} in defines.
* apt::source notify Exec['apt update'].
* Remove dependency to Exec['apt_update'].
* fix rspec-puppet tests.

Conflicts:

	manifests/source.pp
2012-05-04 13:35:13 -07:00

8 lines
151 B
Puppet

class apt::update {
include apt::params
exec { 'apt update':
command => "${apt::params::provider} update",
refreshonly => true,
}
}