update.pp 361 B

12345678910111213
  1. class apt::update {
  2. exec { 'update_apt':
  3. command => '/usr/bin/apt-get update && /usr/bin/apt-get autoclean',
  4. require => [
  5. File['/etc/apt/apt.conf.d', '/etc/apt/preferences' ],
  6. File['/etc/apt/sources.list'] ],
  7. loglevel => info,
  8. # Another Semaphor for all packages to reference
  9. alias => 'apt_updated'
  10. }
  11. }