This repository has been archived by the owner. It is now read-only.
MCollective Fact Source for Facter
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
facts
spec
README.md
Rakefile
buildops.yaml

README.md

MCollective Facter Fact Source

Deprecation Notice

This repository holds legacy code related to The Marionette Collective project. That project has been deprecated by Puppet Inc and the code donated to the Choria Project.

Please review the Choria Project Website and specifically the MCollective Deprecation Notice for further information and details about the future of the MCollective project.

Overview

The facter plugin enables mcollective to use facter as a source for facts about your system.

Note: This method suffers from some issues due to how slow Facter can be in some cases, you should use Facter via YAML instead.

Installation

Configuration

The following options can be set in server.cfg

  • plugin.facter.facterlib - where to find custom facts. Defaults to /var/lib/puppet/lib/facter:/var/lib/puppet/facts

Sample configuration:

factsource = facter
plugin.facter.facterlib = /var/lib/puppet/lib/otherfacts
fact_cache_time = 200

Usage

You should now be able to use all your facter facts in discovery and fact reporting.

% mco rpc rpcutil get_fact fact=osfamily
Discovering hosts using the mc method for 2 second(s) .... 2

 * [ ============================================================> ] 2 / 2

node1.your.com

    Fact: osfamily
   Value: Debian

node2.your.com

    Fact: osfamily
   Value: RedHat


Summary of Value:

   RedHat = 1
   Debian = 1


Finished processing 2 / 2 hosts in 3105.79 ms
% mco rpc rpcutil ping -F osfamily=RedHat
Discovering hosts using the mc method for 2 second(s) .... 1

 * [ ============================================================> ] 1 / 1


node2.your.com
   Timestamp: 1360696771



Finished processing 1 / 1 hosts in 46.86 ms
% mco inventory node1.your.com
Inventory for node1.your.com:

   ...
   ...

   Facts:
      architecture => x86_64
      augeasversion => 0.9.0
      boardmanufacturer => Intel Corporation
      boardproductname => 440BX Desktop Reference Platform
      boardserialnumber => None
      ...
      ...