def __virtual__():
    if salt.utils.which('gluster'):
        return True
    return (False, 'glusterfs server is not installed')
Only load this module if the gluster command exists
dataset/ETHPy150Open saltstack/salt/salt/modules/glusterfs.py/__virtual__