Forge Home

external_facts

Module to manage external facts

11,244 downloads

6,733 latest version

4.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.0 (latest)
  • 1.0.0
released Sep 19th 2016

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'datacentred-external_facts', '1.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add datacentred-external_facts
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install datacentred-external_facts --version 1.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

datacentred/external_facts — version 1.1.0 Sep 19th 2016

datacentred-external_facts

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Testing - Guide for contributing to the module

Overview

The external facts module is a simple wrapper around Facter 1.7+ support for external facts.

Module Description

The external facts module installs supporting directory structures and creates external facts on demand. These are defined on your hosts by puppet DSL and on subsequent runs are sent to the master for use in manifest compilation. If the fact definition is removed the fact is automatically purged and will become absent in subsequent puppet runs.

Usage

Enabling Support

Hosts must declare the directory management portion of the module if they want non-existant facts to be purged and no facts are being pushed.

include ::external_facts

NOTE: As long as there is at least one fact being created auto-purging of other non-manged facts will occur even if the base class is not included

Creating facts

This can either be with an implicit value of true

external_facts::fact { 'a_fact': }

or may be declared with an explicit value for use elsewhere

external_facts::fact { 'servicegroups':
  value => 'http,https',
}

Limitations

This module should work on all GNU Linux systems, but has only been tested on Ubuntu and RedHat.