diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py index c04cf52dc9..022d807cf8 100644 --- a/salt/cloud/clouds/vmware.py +++ b/salt/cloud/clouds/vmware.py @@ -2803,7 +2803,9 @@ def create(vm_): # ssh or smb using ip and install salt only if deploy is True if deploy: vm_['key_filename'] = key_filename - vm_['ssh_host'] = ip + # if specified, prefer ssh_host to the discovered ip address + vm_['ssh_host'] = vm_.get('ssh_host', ip) + log.info("[ {0} ] Deploying to {1}".format(vm_name, vm_['ssh_host'])) out = __utils__['cloud.bootstrap'](vm_, __opts__)