Resource Type: fact

Defined in:
lib/puppet/type/fact.rb
Providers:
fact

Overview

Create a custom fact as text file under /etc/facter/facts.d

fact { ‘environment’:

content => 'production',
target  => 'env',

}

Properties

  • content (defaults to: true)

    The content of the fact

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • target

    Target txt file to write under /etc/facter/facts.d

Parameters

  • name (namevar)

    The fact name

  • provider

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