Facter

Facter is Puppet’s cross-platform system profiling library. It discovers and reports per-node facts, which are available in your Puppet manifests as variables.

Facter is published as a gem to https://rubygems.org/. If you've already got Ruby installed, you can install Facter by running:

gem install facter