use local config for vault when masterless

This commit is contained in:
Daniel Wallace 2018-02-12 07:40:02 -07:00
parent 6530649dbc
commit 2a92f4bc16
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -111,7 +111,7 @@ def _get_vault_connection():
if 'vault' in __opts__ and __opts__.get('__role', 'minion') == 'master':
return _use_local_config()
elif '_ssh_version' in __opts__:
elif any((__opts__['local'], __opts__['file_client'] == 'local', __opts__['master_type'] == 'disable')):
return _use_local_config()
else:
log.debug('Contacting master for Vault connection details')