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