3684f88372
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
8 lines
151 B
Puppet
8 lines
151 B
Puppet
class apt::update {
|
|
include apt::params
|
|
|
|
exec { 'apt update':
|
|
command => "${apt::params::provider} update",
|
|
refreshonly => true,
|
|
}
|
|
}
|