A tool called factor is used by puppet to gather all facts about all its node. Factor by default gathers all the information that is useful for system configuration. You can also add custom facts that are not a part of the default fact set.
To see a list of facts that are automatically being gathered on your agent node, run the following command:
/opt/puppetlabs/bin/facter