vagrant-vmware-esxi 1.2.0 → 1.2.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
  SHA1:
3
- metadata.gz: '0269af4374c1d658023f26ddfae4e1a053ca787c'
4
- data.tar.gz: 4781afa7b1c5e2aca3266435da76fb36f7d39488
3
+ metadata.gz: '038a1ea82c5af283f14aec64af6772ce14ab4a4c'
4
+ data.tar.gz: ddf92761c6a4c8156306c2584bf0f4996ad3ac88
5
5
  SHA512:
6
- metadata.gz: f6a21947c2f23be0a15109090112cd84d22c6ae18b8a2e3334fba8e659947acfcb13c5dd582da3c09f33bde4d2e668e63778b1589bd21abaf1081a1159ca936e
7
- data.tar.gz: 0b701c40c221893d32381197c51d7b2d8a8fd32075dc3ecee13350304db64446407fb0364a29e1384accf53d93ecfebbc41cbf8eb4b5c6ce68b18cbcda0cbf57
6
+ metadata.gz: 72258bd912e1a2c306d18033929378867137a4d84d9e6719ac1931c0fbf022ce82073c24db07d53a96db9c78f170bf19dc6df1e5ab891eae758497cc49240e90
7
+ data.tar.gz: 36b7980ccebfbbc75a5012b791430dce5d88cb519ce515a25071c4600173453ece226241f6117b7c78a116d996ee8b1b8b214568e4e50b4ce703bfb48126e581
data/README.md CHANGED
@@ -193,6 +193,19 @@ Known issues with vmware_esxi
193
193
  * Multi machines may not provision one VM if the boxes are different.
194
194
  * I found this problem with libvirt also, so I'm assuming it's a vagrant problem...
195
195
 
196
+ Version History
197
+ ---------------
198
+ * 1.2.1 Encode special characters in password.
199
+ * 1.2.0 Add support for up to 4 virtual networks.
200
+ * 1.7.1 Show all port groups for each virtual switch instead of just the first.
201
+ * 1.1.6 Update documenation.
202
+ * 1.1.5 Add more detailed information when waiting for state (running).
203
+ * 1.1.4 Update documentation.
204
+ * 1.1.3 Add support to create package.
205
+ * 1.1.2 Fix, reload.
206
+ * 1.1.1 Add support for NFS.
207
+ * 1.1.0 Add support for snapshots.
208
+ * 1.0.1 Init commit.
196
209
 
197
210
  Feedback please!
198
211
  ----------------
@@ -286,6 +286,20 @@ module VagrantPlugins
286
286
  end
287
287
  env[:ui].info I18n.t('vagrant_vmware_esxi.vagrant_vmware_esxi_message',
288
288
  message: "Resource Pool : #{resource_pool}")
289
+ #
290
+ # Encode special characters in PW
291
+ #
292
+ encoded_esxi_password = config.esxi_password.gsub('@', '%40').gsub(\
293
+ '<', '%3c').gsub('>', '%3e').gsub(\
294
+ '[', '%5b').gsub(']', '%5d').gsub(\
295
+ '(', '%28').gsub(')', '%29').gsub(\
296
+ '%', '%25').gsub('#', '%23').gsub(\
297
+ '&', '%26').gsub(':', '%3a').gsub(\
298
+ '/', '%2f').gsub('\\','%5c').gsub(\
299
+ '"', '%22').gsub('\'','%27').gsub(\
300
+ '*', '%2a').gsub('?', '%3f')
301
+
302
+
289
303
  #
290
304
  # Using ovftool, import vmx in box folder, export to ESXi server
291
305
  #
@@ -299,7 +313,7 @@ module VagrantPlugins
299
313
  "#{netOpts} -dm=thin --powerOn "\
300
314
  "-ds=\"#{guestvm_dsname}\" --name=\"#{guestvm_vmname}\" "\
301
315
  "\"#{new_vmx_file}\" vi://#{config.esxi_username}:"\
302
- "#{config.esxi_password}@#{config.esxi_hostname}"\
316
+ "#{encoded_esxi_password}@#{config.esxi_hostname}"\
303
317
  "#{resource_pool}"
304
318
 
305
319
  # Security bug if unremarked! Password will be exposed in log file.
@@ -313,7 +327,12 @@ module VagrantPlugins
313
327
  end
314
328
 
315
329
  # VMX file is not needed any longer
316
- File.delete(new_vmx_file)
330
+ if (config.debug =~ %r{true}i) ||
331
+ (config.debug =~ %r{yes}i)
332
+ puts "Keeping file: #{new_vmx_file}"
333
+ else
334
+ File.delete(new_vmx_file)
335
+ end
317
336
 
318
337
  r = ssh config.esxi_hostname,
319
338
  'vim-cmd vmsvc/getallvms |'\
@@ -1,6 +1,6 @@
1
1
  # VERSION
2
2
  module VagrantPlugins
3
3
  module ESXi
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
6
6
  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: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Senkerik