Puppet Class: db2_install::clear_caches

Defined in:
manifests/clear_caches.pp

Summary

This class contains the puppet code that implements the default facter cache invainvalidationlidatin rules.

Overview

db2_install::clear_caches

Whenever a certain set of Puppet classes or defined types is applied, it will clear the facter caches for those facts that are implemented.

See the file “LICENSE” for the full license governing this code.



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/clear_caches.pp', line 10

class db2_install::clear_caches () {
  fact_cache { 'db2_install_locations.product_version':
    ensure      => absent,
    refreshonly => true,
  }

  Db2_install::Software<||> ~> Fact_cache['db2_install_locations.product_version']
  Db2_install::Fixpack<||> ~> Fact_cache['db2_install_locations.product_version']

  fact_cache { 'db2_install_locations.installed_components':
    ensure      => absent,
    refreshonly => true,
  }

  Db2_install::Software<||> ~> Fact_cache['db2_install_locations.installed_components']
  Db2_install::Fixpack<||> ~> Fact_cache['db2_install_locations.installed_components']
}