Get Ubuntu System facts with facter
It is easy to extend Facter to include your own custom facts or to include additional mechanisms for retrieving facts.
Install facter in Ubuntu
sudo apt-get install facter
This will complete the installation.
If you want to view your system facts just type the following command from your terminal
Output looks like below