chef-provisioning-vsphere 2.3.0 → 2.3.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: fee187b088f7b218b9e783f294da04188b0e38ba
4
- data.tar.gz: 1fcb11378516dc70fc0a1acd9b2381cc58c219ca
3
+ metadata.gz: f30ed0266288f8eb896f123251c160a6e70416ac
4
+ data.tar.gz: 752ba947f311bad91910751a5995e7f0a96b8480
5
5
  SHA512:
6
- metadata.gz: 9e8545b0d2035c652ff75d6d661938f8fb2b7a866e2393c2084120672b923d32bd65da35bd6c0a1cf4364e5b81093cbfb485c7a779eefc55ae8451c13ed702b8
7
- data.tar.gz: 9b1d22263be24c51ef3392b32e17e9d836827b55ee3a4fa7a3b2836519faef09df295951673bb0ca33de6c55173d2d9d67685f78b8b6219d2cc61ccaa96cb301
6
+ metadata.gz: 89775c312bcf41f1fb37a746a503c7aac416bddd61156825738d879cb6a4868abbea06f3b42b416574e4a3d28bdaeb601926a7b7e7c50f34c868de74e2cea4f6
7
+ data.tar.gz: cbdb0882a1e9737bc63884bf8b67134677c5f029729497f5d1651b0988f8f828b6c0bc760c54fa0d5802bbeeafa52da0a2a715465948608aa2aaa1c8325cd3d4
@@ -1,7 +1,13 @@
1
1
  # Change Log
2
2
 
3
- ## [v2.3.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v2.3.0)
3
+ ## [2.3.1](https://github.com/chef-partners/chef-provisioning-vsphere/tree/2.3.1) (2018-07-09)
4
+ [Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v2.3.0...2.3.1)
4
5
 
6
+ **Merged pull requests:**
7
+
8
+ - Improve logging for optional settings [\#90](https://github.com/chef-partners/chef-provisioning-vsphere/pull/90) ([josh-barker](https://github.com/josh-barker))
9
+
10
+ ## [v2.3.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v2.3.0) (2018-06-20)
5
11
  [Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v2.2.2...v2.3.0)
6
12
 
7
13
  **Merged pull requests:**
@@ -304,4 +310,4 @@
304
310
  ## [v0.1.3](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.1.3) (2014-05-09)
305
311
 
306
312
 
307
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
313
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -683,7 +683,7 @@ module ChefProvisioningVsphere
683
683
  last_progress = progress
684
684
  end
685
685
  end
686
- print "\n#{machine_name} done!"
686
+ print "\n#{machine_name} done!\n\n"
687
687
 
688
688
  vm = vsphere_helper.find_vm(vm_folder, machine_name)
689
689
  add_machine_spec_location(vm, machine_spec)
@@ -3,5 +3,5 @@
3
3
  # Provisions machines in vSphere.
4
4
  module ChefProvisioningVsphere
5
5
  # The version of this awesome Gem. BOOM.
6
- VERSION = "2.3.0".freeze
6
+ VERSION = "2.3.1".freeze
7
7
  end
@@ -265,6 +265,8 @@ module ChefProvisioningVsphere
265
265
  size = size.to_i
266
266
  next if size <= 0
267
267
 
268
+ puts "Creating disk with #{size} GB"
269
+
268
270
  task = vm.ReconfigVM_Task(
269
271
  spec: RbVmomi::VIM.VirtualMachineConfigSpec(
270
272
  deviceChange: [
@@ -278,6 +280,8 @@ module ChefProvisioningVsphere
278
280
  )
279
281
  task.wait_for_completion
280
282
  end
283
+
284
+ puts nil unless Array(additional_disk_size_gb).empty?
281
285
  end
282
286
 
283
287
  # Mounts the an iso on the first virtual CD ROm
@@ -287,6 +291,8 @@ module ChefProvisioningVsphere
287
291
  def set_initial_iso(vm, initial_iso_image)
288
292
  return unless initial_iso_image
289
293
 
294
+ puts "Mounting #{initial_iso_image} on first virtual CD ROM", nil
295
+
290
296
  d_obj = vm.config.hardware.device.select { |hw| hw.class == RbVmomi::VIM::VirtualCdrom }.first
291
297
  backing = RbVmomi::VIM::VirtualCdromIsoBackingInfo(fileName: initial_iso_image)
292
298
 
@@ -327,6 +333,9 @@ module ChefProvisioningVsphere
327
333
  end
328
334
  return false
329
335
  end
336
+
337
+ puts "Changing main disk to #{size_gb} GB", nil
338
+
330
339
  disk.capacityInKB = size_kb
331
340
  vm.ReconfigVM_Task(
332
341
  spec: RbVmomi::VIM.VirtualMachineConfigSpec(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-20 00:00:00.000000000 Z
12
+ date: 2018-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef
OSZAR »