Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Collect and display system facts

This branch is 1754 commits behind puppetlabs:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
acceptance
bin
ext
lib
libexec/ext
man/man8
schema
spec
tasks
.autotest
.gemspec
.gitignore
.mailmap
.noexec.yaml
.travis.yml
.yardopts
COMMITTERS.md
CONTRIBUTING.md
Gemfile
LICENSE
README.md
Rakefile
install.rb

README.md

Facter

Build Status

This package is largely meant to be a library for collecting facts about your system. These facts are mostly strings (i.e., not numbers), and are things like the output of uname, public ssh keys, the number of processors, etc.

See bin/facter for an example of the interface.

Installation

Generally, you need the following things installed:

  • A supported Ruby version. Ruby 1.8.7, 1.9.3, and 2.0.0 (at least p195) are fully supported.

Running Facter

Run the facter binary on the command for a full list of facts supported on your host.

Adding your own facts

See the Adding Facts page for details of how to add your own custom facts to Facter.

Running Specs

  • bundle install --path .bundle/gems
  • bundle exec rake spec

Note: external facts in the system facts.d directory can cause spec failures.

Further Information

See http://www.puppetlabs.com/puppet/related-projects/facter for more details.

Something went wrong with that request. Please try again.