Closed jbregman closed 6 years ago
Yes, I believe you are right... The global variable will be used for both ESXi servers. I have a single esxi server and never really thought people would do multimachines using more than one esxi host (with different passwords). I never tested this configuration. This should be fixable by storing the password differently. I'll have a new beta for you shortly.
If you could please test this beta, it would be appreciated. Just uninstall the old plugin, and install this beta. Let me know how it works out...
$ wget https://dc002.jintegrate.co:/89ki37392937y4/vagrant-vmware-esxi-2.2.1beta2.gem $ vagrant plugin uninstall vagrant-vmware-esxi $ vagrant plugin install vagrant-vmware-esxi-2.2.1beta2.gem
2.2.1 has been released.
Vagrant Version: 2.0.1 Plugin Version: 2.2.1beta Client O/S: Mac OSX 10.12.6
In my Vagrant file, I have some hosts that are configured to use one ESX1 server (server1), and some hosts that are configured to use another ESXi server (server2).
When the Ansible provisioner runs, I get an authentication error:
I added some debugging information and it looks like the issue is that there is a single global password stored in $esxi_password.
This passwords for server1 and server2 are different so this is likely why this is failing.