Salt Grains
Salt comes with an interface to derive information about the underlying system. This is called the grains interface, because it presents salt with grains of information. Grains are collected for the operating system, domain name, IP address, kernel, OS type, memory, and many other system properties.
salt '*' grains.ls
#lists grains available
salt '*' grains.items
#shows the actual data
salt -G 'os:Ubuntu' test.ping
#targets host running Ubuntu
salt '*' grains.item zmqversion
#shows just this grain detail
can create custom grains (have to configure on each minion)