5.3.1. HOWTO Block or Cache Facts

As described in Configuring Facter with facter.conf, you can block or cache groups of facts on a node using settings in facter.conf on that node. SIMP has made this easier by adding management of facter.conf to simp/pupmod (version >= ‘8.0.0’). Using this module, you can manage facter.conf and specify its configuration in Hiera.

Here is example Hiera that blocks and caches select groups of facts:

pupmod::manage_facter_conf: true
      - EC2
      - kernel: "8 hours"
      - memory: "8 hours"
      - operating system: "8 hours"
      - processor: "8 hours"