Get the OS distribution ID.
Returns one of "Debian", "Ubuntu", "RHEL", "CentOS", "Fedora", "Archlinux"...
Example:
from fabtools.system import distrib_id
if distrib_id() != 'Debian':
abort(u"Distribution is not supported")
Get the distribution family.
Returns one of debian, redhat, other.
Get the release number of the Linux distribution.
Example:
from fabtools.system import distrib_id, distrib_release
if distrib_id() == 'CentOS' and distrib_release() == '6.1':
print(u"CentOS 6.2 has been released. Please upgrade.")