For some of the larger installations, resolving some of the db2_install facts can be very time-consuming. Puppet added facter caching to Facter version 4. By default, facter caching is disabled.


The requirements for enabling facter caching are:

  • At least Facter version 4.1.0.
  • Your existing facts must still work with Facter setting force-dot-resolution enabled

Enable facter caching

To enable facter caching, you must include the class db2_install into your Puppet codebase. You also must add at least the following line to your hieradata:

db2_install::fact_caching::enabled:     true

See here for more information about setting the Time To Live (TTL) for the different db2_install facts.