Get Ubuntu System facts with facter

a library for retrieving facts from operating systems.A cross-platform Ruby library for retrieving facts from operating systems. Supports multiple resolution mechanisms, any of which can be restricted to working only on certain operating systems...