vagrant-vmware-esxi 2.2.1 → 2.2.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4741f102e0fc5afd6b6d0ee886f6b5d863b49e4
|
4
|
+
data.tar.gz: 8f3519566a7ba2c5381823f9e4b9a0def26415e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e41dfa63d8f38cec8598bed5afddbd13d8baeb78051dedc0d644365539b9a57ba5ea53d16795a7dfb3dc59f73a1deb546524170a42c2cd9f74636018c61cea
|
7
|
+
data.tar.gz: f84886ad62eb6a7bb93817722081fa2bdd32550a6c6ed5ed52c85835613440f6d63394ac373ddb6cd6e8e292e4c432c10ad62184cc51119a675e3ae32299b11a
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Refer to the WIKI for documentation, examples and other information...
|
|
12
12
|
What's new!
|
13
13
|
-----------
|
14
14
|
Added support to clone from a VM! Refer to the WIKI for documentation, example and other information.
|
15
|
-
>https://github.com/josenk/vagrant-vmware-esxi/wiki/How-to-clone_from_vm
|
15
|
+
>https://github.com/josenk/vagrant-vmware-esxi/wiki/How-to-clone_from_vm
|
16
16
|
|
17
17
|
Features and Compatibility
|
18
18
|
--------------------------
|
@@ -95,8 +95,9 @@ Vagrant.configure('2') do |config|
|
|
95
95
|
#config.vm.box = 'puphpet/debian75-x64'
|
96
96
|
|
97
97
|
|
98
|
-
# Use rsync and NFS synced folders. (or disable them)
|
99
|
-
|
98
|
+
# Use rsync and NFS synced folders. (or use the option to disable them)
|
99
|
+
# https://www.vagrantup.com/docs/synced-folders/
|
100
|
+
#config.vm.synced_folder('.', '/vagrant', type: 'rsync')
|
100
101
|
config.vm.synced_folder('.', '/vagrant', type: 'nfs', disabled: true)
|
101
102
|
|
102
103
|
# Vagrant can configure additional network interfaces using a static IP or
|
@@ -154,7 +155,7 @@ Vagrant.configure('2') do |config|
|
|
154
155
|
# Vagrant can use any stopped VM as the source 'box'. The VM must be
|
155
156
|
# registered, stopped and must have the vagrant insecure ssh key installed.
|
156
157
|
# If the VM is stored in a resource pool, it must be specified.
|
157
|
-
# See wiki: https://github.com/josenk/vagrant-vmware-esxi/wiki/How-to-clone_from_vm
|
158
|
+
# See wiki: https://github.com/josenk/vagrant-vmware-esxi/wiki/How-to-clone_from_vm
|
158
159
|
#esxi.clone_from_vm = 'resource_pool/source_vm'
|
159
160
|
|
160
161
|
# OPTIONAL. Guest VM name to use.
|
@@ -276,6 +277,8 @@ Known issues with vmware_esxi
|
|
276
277
|
|
277
278
|
Version History
|
278
279
|
---------------
|
280
|
+
* 2.2.2 Fix, Avoid crash if esxi_password is nil.
|
281
|
+
|
279
282
|
* 2.2.1 Fix, clone_from_vm not working on MAC.
|
280
283
|
Fix, enabled SetHostname.
|
281
284
|
Fix, Multimachine not working with multiple esxi hosts and different passwords.
|
data/example_box/Vagrantfile
CHANGED
@@ -27,7 +27,8 @@ Vagrant.configure('2') do |config|
|
|
27
27
|
|
28
28
|
|
29
29
|
# Use rsync and NFS synced folders. (or disable them)
|
30
|
-
|
30
|
+
# https://www.vagrantup.com/docs/synced-folders/
|
31
|
+
#config.vm.synced_folder('.', '/vagrant', type: 'rsync')
|
31
32
|
config.vm.synced_folder('.', '/vagrant', type: 'nfs', disabled: true)
|
32
33
|
|
33
34
|
# Vagrant can set a static IP for the additional network interfaces. Use
|
@@ -110,8 +111,8 @@ Vagrant.configure('2') do |config|
|
|
110
111
|
# IP addresses. This specifies which 'ESXi virtual network' is used for
|
111
112
|
# each network interface in your VM. For most OS's DHCP is the default,
|
112
113
|
# so, you will need a DHCP server for each virtual network. To set a
|
113
|
-
# static IP, see above 'config.vm.network'.
|
114
|
-
#esxi.esxi_virtual_network = ['
|
114
|
+
# static IP for interface 2, 3 or 4. see above 'config.vm.network'.
|
115
|
+
#esxi.esxi_virtual_network = ['VM Network','VM Network2','VM Network3','VM Network4']
|
115
116
|
|
116
117
|
# OPTIONAL. Specify a Disk Store
|
117
118
|
# If it's not specified, the Default is to use the least used Disk Store.
|
@@ -123,7 +124,7 @@ Vagrant.configure('2') do |config|
|
|
123
124
|
# from other systems on your esxi host. The resource pool must
|
124
125
|
# already exist and have the proper permissions set.
|
125
126
|
#
|
126
|
-
#
|
127
|
+
# This plugin will NOT create a Resource pool for you!
|
127
128
|
#esxi.esxi_resource_pool = '/Vagrant'
|
128
129
|
|
129
130
|
# Optional. Specify a VM to clone instead of uploading a box.
|
@@ -131,7 +132,7 @@ Vagrant.configure('2') do |config|
|
|
131
132
|
# registered, stopped and must have the vagrant insecure ssh key installed.
|
132
133
|
# If the VM is stored in a resource pool, it must be specified. If this
|
133
134
|
# option is specified, config.vm.box should be set to a dummy box.
|
134
|
-
# See wiki: https://github.com/josenk/vagrant-vmware-esxi/wiki/How-to-clone_from_vm
|
135
|
+
# See wiki: https://github.com/josenk/vagrant-vmware-esxi/wiki/How-to-clone_from_vm
|
135
136
|
#esxi.clone_from_vm = 'resource_pool/source_vm'
|
136
137
|
|
137
138
|
# OPTIONAL. Guest VM name to use.
|
@@ -207,7 +208,7 @@ Vagrant.configure('2') do |config|
|
|
207
208
|
# of the time, you don't need to change this unless ovftool doesn't get
|
208
209
|
# the correct information from the box. See my page on supported guest_guestos
|
209
210
|
# types for ESXI.
|
210
|
-
# https://github.com/josenk/vagrant-vmware-esxi/
|
211
|
+
# https://github.com/josenk/vagrant-vmware-esxi/blob/master/ESXi_guestos_types.md
|
211
212
|
#esxi.guest_guestos = 'centos-64'
|
212
213
|
|
213
214
|
# OPTIONAL. guest_virtualhw_version
|
@@ -32,6 +32,7 @@ module VagrantPlugins
|
|
32
32
|
#
|
33
33
|
# Prompt for password
|
34
34
|
#
|
35
|
+
password_type = 'prompt'
|
35
36
|
begin
|
36
37
|
print "#{config.esxi_username}@#{config.esxi_hostname} password:"
|
37
38
|
config.esxi_password = STDIN.noecho(&:gets).chomp
|
@@ -57,6 +58,7 @@ module VagrantPlugins
|
|
57
58
|
#
|
58
59
|
# Get pw from environment variable
|
59
60
|
#
|
61
|
+
password_type = 'env'
|
60
62
|
esxi_password_env = config.esxi_password.gsub(/env:/i, '').chomp
|
61
63
|
if esxi_password_env.length < 1
|
62
64
|
esxi_password_env = 'esxi_password'
|
@@ -72,6 +74,7 @@ module VagrantPlugins
|
|
72
74
|
#
|
73
75
|
# Get password from file
|
74
76
|
#
|
77
|
+
password_type = 'file'
|
75
78
|
esxi_password_file = config.esxi_password.gsub(/file:/i, '').chomp
|
76
79
|
if esxi_password_file.empty?
|
77
80
|
esxi_password_file = '~/.esxi_password'
|
@@ -95,6 +98,7 @@ module VagrantPlugins
|
|
95
98
|
#
|
96
99
|
# use ssh keys
|
97
100
|
#
|
101
|
+
password_type = 'key'
|
98
102
|
esxi_password_key = config.esxi_password.gsub(/key:/i, '').chomp
|
99
103
|
config.esxi_password = ''
|
100
104
|
unless esxi_password_key.empty?
|
@@ -102,6 +106,7 @@ module VagrantPlugins
|
|
102
106
|
end
|
103
107
|
else
|
104
108
|
# Use plain text password from config
|
109
|
+
password_type = 'plain'
|
105
110
|
end
|
106
111
|
|
107
112
|
#
|
@@ -177,16 +182,16 @@ module VagrantPlugins
|
|
177
182
|
end
|
178
183
|
end
|
179
184
|
rescue
|
180
|
-
if
|
181
|
-
access_error_message = '
|
182
|
-
elsif
|
183
|
-
access_error_message = "env:#{esxi_password_env}"
|
184
|
-
elsif
|
185
|
-
access_error_message = "file:#{esxi_password_file}"
|
186
|
-
elsif
|
187
|
-
access_error_message = "key:#{config.local_private_keys}"
|
185
|
+
if password_type == 'prompt'
|
186
|
+
access_error_message = 'Password incorrect.'
|
187
|
+
elsif password_type == 'env'
|
188
|
+
access_error_message = "Verify env:#{esxi_password_env}"
|
189
|
+
elsif password_type == 'file'
|
190
|
+
access_error_message = "Verify file:#{esxi_password_file}"
|
191
|
+
elsif password_type == 'key'
|
192
|
+
access_error_message = "Verify key:#{config.local_private_keys}"
|
188
193
|
else
|
189
|
-
access_error_message = 'password in Vagrantfile'
|
194
|
+
access_error_message = 'Verify password in Vagrantfile is correct.'
|
190
195
|
end
|
191
196
|
|
192
197
|
env[:ui].info I18n.t('vagrant_vmware_esxi.vagrant_vmware_esxi_message',
|
data/vagrant-vmware-esxi.gemspec
CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../lib/vagrant-vmware-esxi/version', __FILE__)
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'vagrant-vmware-esxi'
|
5
5
|
s.version = VagrantPlugins::ESXi::VERSION
|
6
|
-
s.date = '2018-
|
6
|
+
s.date = '2018-05-09'
|
7
7
|
s.summary = 'Vagrant ESXi provider plugin'
|
8
8
|
s.description = 'A Vagrant plugin that adds a VMware ESXi provider support'
|
9
9
|
s.authors = ['Jonathan Senkerik']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vmware-esxi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Senkerik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|