module LegacyFacter

Functions as a hash of ‘facts’ about your system system, such as MAC address, IP address, architecture, etc.

@example Retrieve a fact

puts Facter['operatingsystem'].value

@example Retrieve all facts

Facter.to_hash
 => { "kernel"=>"Linux", "uptime_days"=>0, "ipaddress"=>"10.0.0.1" }

@api public

The resolvable mixin defines behavior for evaluating and returning fact resolutions.

Classes including this mixin should implement a name method describing the value being resolved and a resolve_value that actually executes the code to resolve the value.

The Suitable mixin provides mechanisms for confining objects to run on certain platforms and determining the run precedence of these objects.

Classes that include the Suitable mixin should define a ‘#confines` method that returns an Array of zero or more Facter::Util::Confine objects.

Manage which facts exist and how we access them. Largely just a wrapper around a hash of facts.

@api private

A composite loader that allows for more than one default directory loader

A module to return config related data

A restricting tag for fact resolution mechanisms. The tag must be true for the resolution mechanism to be suitable.

Load facts on demand.

This class acts as the factory and parent class for parsed facts such as scripts, text, json and yaml files.

Parsers must subclass this class and provide their own results method.