Resource Type: fact_config

Defined in:
lib/puppet/type/fact_config.rb
Providers:
simple

Overview

Specify the configuration for the fact.

blocked — Prevents all facts within the listed groups from being resolved when Facter runs.

ttls — Caches the key-value pairs of groups and their duration to be cached.

Caching and blocking facts is useful when Facter is taking a long time and slowing down your code. When a system has a lot of something — for example, mount points or disks — Facter can take a long time to collect the facts from each one. When this is a problem, you can speed up Facter’s collection by either blocking facts you’re uninterested in (blocklist), or caching ones you don’t need retrieved frequently (ttls).

Parameters

  • provider

    The specific backend to use for this ‘fact_config` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.