Puppet Class: puppetmaster::package_cache

Defined in:
manifests/package_cache.pp

Overview

Update package cache on Debian/Ubuntu to avoid installer failures due to missing packages



5
6
7
8
9
10
11
12
13
14
# File 'manifests/package_cache.pp', line 5

class puppetmaster::package_cache {

  if $::osfamily == 'Debian' {
    exec { 'update apt cache':
      command   => 'apt-get update',
      path      => ['/bin','/usr/bin'],
      logoutput => true,
    }
  }
}