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)

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 keychain the location of the keychain to set as default domain the domain to use valid values are user|system|common|dynamic .