def stop():
    cmd = 'mdadm --stop --scan'

    if __salt__['cmd.retcode'](cmd):
        return True

    return False
Shut down all arrays that can be shut down (i.e. are not currently in use).
dataset/ETHPy150Open saltstack/salt/salt/modules/mdadm.py/stop