def set_default_keychain(keychain, domain="user", user=None):
    cmd = "security default-keychain -d {0} -s {1}".format(domain, keychain)
    return __salt__['cmd.run'](cmd, runas=user)
Set the default keychain
dataset/ETHPy150Open saltstack/salt/salt/modules/mac_keychain.py/set_default_keychain