vagrant-vmware-esxi 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc3837233e1568c8692fd622f92933786854f0ec3723c4cd3152f9f78da857ca
4
- data.tar.gz: 6f4c96f69695c835c886bd794c6992a486851b39e9453f1a247b5ecd96a54b36
3
+ metadata.gz: 40331b3198d6a85293719e3bd1c529ce7d01de80f151b2cdeed7aa771e0f127a
4
+ data.tar.gz: a500020408fe69d6d81a057a390013cb8f3d897d062fc7a634ff243c018743b1
5
5
  SHA512:
6
- metadata.gz: 2a7b2ee288b8c77394e3ec2dafa9bbc428bb985b36dc9109fbd8916283597e7053f80e4c392681a9149397fadf023ebe72899c0dbdc4650a4a20aad23a77c935
7
- data.tar.gz: 8ad9f3ac34fa9dc6fe0b306800d471617038ff2e2f30782bf87bdf0451ab7040ac4ceb302ba2300592db280ce34ed6433c386dc304dc0e281a098ea13b7e6ee4
6
+ metadata.gz: eacbdb2b3d689b16cfe45c36ee7fe42d475ea3a3e6f4f19de22cb034bc1922d8bd9585449ed537894e99a9f2b94c7a50a1326bbf30261f193016d6a964020d55
7
+ data.tar.gz: 736975fe3243fd1f847048e9131e619a27788279b03eae7518c54dd4910f7506ad6c3d7549fdadab0ca3190e7ac3a13133365dbcad6b0bdf3db8b11832e03284
data/README.md CHANGED
@@ -3,6 +3,7 @@ vagrant-vmware-esxi plugin
3
3
  This is a Vagrant plugin that adds a VMware ESXi provider support. This allows Vagrant to control and provision VMs directly on an ESXi hypervisor without a need for vCenter or VShpere. ESXi hypervisor is a free download from VMware!
4
4
  >https://www.vmware.com/go/get-free-esxi
5
5
 
6
+
6
7
  Documentation:
7
8
  -------------
8
9
  Refer to the WIKI for documentation, examples and other information...
@@ -18,7 +19,6 @@ If you are using vagrant as a deployment tool (infra as code), you may want to c
18
19
  >https://github.com/josenk/vagrant-vmware-esxi
19
20
 
20
21
 
21
-
22
22
  Features and Compatibility
23
23
  --------------------------
24
24
  * Clone from VMs. (see wiki) Clone a VM on the ESXi host instead of transferring a box stored on your local pc.
@@ -42,6 +42,7 @@ Features and Compatibility
42
42
  * Specify GuestOS types, virtual HW version.
43
43
  * Any custom vmx settings can be added or modified.
44
44
 
45
+
45
46
  Requirements
46
47
  ------------
47
48
  1. This is a vagrant plugin, so you need vagrant installed... :-)
@@ -287,6 +288,7 @@ Known issues with vmware_esxi
287
288
 
288
289
  Version History
289
290
  ---------------
291
+ * 2.5.1 Fix, filter localhost from local IP detection for nfs sync.
290
292
  * 2.5.0 Add support to set guest vm to Autostart.
291
293
  * 2.4.5 Do not wait for `running` when resuming a VM that is not able to be resumed.
292
294
  * 2.4.4 Show stderr if unable to connect to ESXi host. Update GuestOS types.
@@ -92,7 +92,7 @@ module VagrantPlugins
92
92
  ' install from http://www.vmware.com.'
93
93
  end
94
94
 
95
- ovf_cmd = "ovftool --noSSLVerify -tt=VMX --name=\"#{boxname}\" "\
95
+ ovf_cmd = "ovftool --noSSLVerify -tt=VMX --X:useMacNaming=false --name=\"#{boxname}\" "\
96
96
  "#{overwrite_opts} vi://#{config.esxi_username}:"\
97
97
  "#{config.encoded_esxi_password}@#{config.esxi_hostname}"\
98
98
  "?moref=vim.VirtualMachine:#{machine.id} #{tmpdir}"
@@ -29,7 +29,11 @@ module VagrantPlugins
29
29
  begin
30
30
  puts "Get local IP address for NFS. (pri)" if env[:machine].provider_config.debug =~ %r{ip}i
31
31
  # The Standard way to get your IP. Get your hostname, resolv it.
32
- env[:nfs_host_ip] = Socket::getaddrinfo(Socket.gethostname,"echo",Socket::AF_INET)[0][3]
32
+ addr_info = Socket::getaddrinfo(Socket.gethostname,"echo",Socket::AF_INET)
33
+
34
+ non_localhost = addr_info.select{ |info| info[3] !~ /^127./}
35
+
36
+ env[:nfs_host_ip] = non_localhost[0][3]
33
37
  rescue
34
38
  puts "Get local IP address for NFS. (alt)" if env[:machine].provider_config.debug =~ %r{ip}i
35
39
  # Alt method. Get list of ip_addresses on system and use the first.
@@ -1,7 +1,7 @@
1
1
  # VERSION
2
2
  module VagrantPlugins
3
3
  module ESXi
4
- VERSION = '2.5.0'
4
+ VERSION = '2.5.1'
5
5
  $vagrant_vmware_esxi_version = VERSION
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vmware-esxi
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Senkerik