chef-provisioning-vsphere 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c7843e76054d8e24c2877c39e7ea977b058ad3d
4
- data.tar.gz: c680975fe63a934184a35689cbf34edb20c089b0
3
+ metadata.gz: 03c5998bc43727c00125d14f4606ac01a3ee0f20
4
+ data.tar.gz: adeb79939b6432484539b9356f131945f3796134
5
5
  SHA512:
6
- metadata.gz: 6f0319194b827e97857e621f2ab692124bc6054222055035425909e06c09054e4c3bb9c572f6754a13467b42d5c6d289ec998a2acc1f18dd05f260d172de1ab6
7
- data.tar.gz: 518ceec81e5a94b73b239aa89563b153c9a064baa98f3e8a752973a97e1bd13c086d91e7b34ab65e7b7acff964c75b28ae2a4bc74772fef59f941aaa952814f3
6
+ metadata.gz: 29c3144c3b2456590b965b3de6e6f240170bfa5513d4862f2262ecbf6e7b1d544290e6a6edec657e4835b8fe1bd08ab80dea249c745c804a63c30b904ce30019
7
+ data.tar.gz: 8b9956c30bbd487e8649c1a0b76db0b3ae577f7558d9d8ff73313e7c6c93bb70eed88f90a881bc3f899b390c2566e00f4ddac745846735976bb472db10754d89
data/CHANGELOG.md CHANGED
@@ -1,7 +1,20 @@
1
1
  # Change Log
2
2
 
3
- ## [2.0.5](https://github.com/chef-partners/chef-provisioning-vsphere/tree/2.0.5) (2017-07-24)
4
- [Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v2.0.5...2.0.5)
3
+ ## [2.0.7](https://github.com/chef-partners/chef-provisioning-vsphere/tree/2.0.7) (2017-10-19)
4
+ [Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v2.0.6...2.0.7)
5
+
6
+ **Closed issues:**
7
+
8
+ - Cannot assign requested address - bind\(2\) for \[::1\]:8889 [\#58](https://github.com/chef-partners/chef-provisioning-vsphere/issues/58)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Solve \#59: action :destroy fails on powered off VM [\#60](https://github.com/chef-partners/chef-provisioning-vsphere/pull/60) ([algaut](https://github.com/algaut))
13
+ - Added single-host config info [\#57](https://github.com/chef-partners/chef-provisioning-vsphere/pull/57) ([akulbe](https://github.com/akulbe))
14
+ - typo [\#55](https://github.com/chef-partners/chef-provisioning-vsphere/pull/55) ([netflash](https://github.com/netflash))
15
+
16
+ ## [v2.0.6](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v2.0.6) (2017-07-24)
17
+ [Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v2.0.5...v2.0.6)
5
18
 
6
19
  **Closed issues:**
7
20
 
data/README.md CHANGED
@@ -79,7 +79,7 @@ This will use chef-zero and needs no chef server (only works for ssh). Note that
79
79
 
80
80
  - `[:use_linked_clone]` - (true/false) great for testing but not recommended for production.
81
81
  - `[:datacenter]` - Name of vsphere datacenter (*required*)
82
- - `[:template_name]` - path to vmware template (can be template or a shutown vm) (*required*)
82
+ - `[:template_name]` - path to vmware template (can be template or a shutdown vm) (*required*)
83
83
  - `[:template_folder]` - path to a folder containing the template (do not use if template is in the root vm folder)
84
84
  - `[:vm_folder]` - path to a folder where the machine will be created.
85
85
  - `[:datastore]` - name of datastore to use
@@ -87,7 +87,8 @@ This will use chef-zero and needs no chef server (only works for ssh). Note that
87
87
  - `[:network_name]` - array of network names to use. A NIC will be added for each
88
88
  - `[:memory_mb]` - number of megabytes to allocate for machine
89
89
  - `[:host]` - `{cluster}`/`{host}` to use during provisioning
90
- - `[:resource_pool]` - `{cluster}`/`{resource pool}` to use during provisioning
90
+ - `[:resource_pool]` - `{cluster}`/`{resource pool}` to use during provisioning
91
+ (for single-host setups, use `{vsphere_ip / vsphere_hostname}`/`{resource pool}`)
91
92
  - `[:additional_disk_size_gb]` - an array of numbers, each signifying the number of gigabytes to assign to an additional disk (*this requires a datastore to be specified*)
92
93
  - `[:bootstrap_ipv4]` - `true` / `false`, set to `true` to wait for an IPv4 address to become available before bootstrapping.
93
94
  - `[:ipv4_timeout]` - use with `[:bootstrap_ipv4]`, set the time in seconds to wait before an IPv4 address is received (defaults to 30)
@@ -2,5 +2,5 @@
2
2
  # Provisions machines in vSphere.
3
3
  module ChefProvisioningVsphere
4
4
  # The version of this awesome Gem. BOOM.
5
- VERSION = "2.0.6".freeze
5
+ VERSION = "2.0.7".freeze
6
6
  end
@@ -79,6 +79,7 @@ module ChefProvisioningVsphere
79
79
  # @param [Object] timeout Defaults to 600 seconds or 10 mins before giving up.
80
80
  def stop_vm(vm, timeout = 600)
81
81
  start = Time.now.utc
82
+ return if vm.runtime.powerState == "poweredOff"
82
83
  begin
83
84
  vm.ShutdownGuest
84
85
  until (Time.now.utc - start) > timeout ||
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.0.6
4
+ version: 2.0.7
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: 2017-07-24 00:00:00.000000000 Z
12
+ date: 2017-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: chef