Puppet Class: yum::clean

Defined in:
manifests/clean.pp

Overview

Class for invalidating the Yum caches.

Examples:

Declaring the class

include ::yum
include ::yum::clean

Yumrepo <||> ~> Class['::yum::clean']

See Also:

Since:

  • 1.0.0



12
13
14
15
16
17
18
19
20
21
22
# File 'manifests/clean.pp', line 12

class yum::clean {

  if ! defined(Class['::yum']) {
    fail('You must include the yum base class before using the yum::clean class')
  }

  exec { "yum clean --enablerepo='*' all":
    path        => $::path,
    refreshonly => true,
  }
}