clc-chef-metal-vsphere 0.3.18 → 0.3.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chef_metal_vsphere/version.rb +1 -1
- data/lib/chef_metal_vsphere/vsphere_driver.rb +19 -22
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 004372fe9c9c3ad94b5e8dd7c0d586347fc6d67f
|
4
|
+
data.tar.gz: c9dc1936c513c02464381c88c2c4998fe296550e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7006e23c8a7a3e86e0ceeda019a0f733c21e56aafad253d2ff57da20e62fe58d2539b37907c29bd6694d6dc26ca6ad9b14f3d585d3c2bff80fadb93bd72f2d8c
|
7
|
+
data.tar.gz: 645a05ada0ef6142e3ec88ae558aa89dbff9bac379fb296eb3969b60696f2ff45c9957762c6139b58881c159c3836683712e3164c21b367e4b9c848e686f5b31
|
@@ -198,31 +198,28 @@ module ChefMetalVsphere
|
|
198
198
|
wait_until_ready(action_handler, machine_spec, machine_options, vm)
|
199
199
|
|
200
200
|
bootstrap_options = bootstrap_options_for(machine_spec, machine_options)
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
201
|
+
|
202
|
+
transport = transport_for(machine_spec, machine_options, vm)
|
203
|
+
if !transport.available?
|
204
|
+
Chef::Log.info "waiting for customizations to complete"
|
205
|
+
now = Time.now.utc
|
206
|
+
until (Time.now.utc - now) > 45 || (!vm.guest.ipAddress.nil? && vm.guest.ipAddress.length > 0) do
|
207
|
+
print "-"
|
208
|
+
sleep 5
|
209
|
+
end
|
210
|
+
if vm.guest.ipAddress.nil? || vm.guest.ipAddress.length == 0
|
211
|
+
Chef::Log.info "rebooting..."
|
212
|
+
if vm.guest.toolsRunningStatus != "guestToolsRunning"
|
213
|
+
Chef::Log.info "tools have stopped. current power state is #{vm.runtime.powerState} and tools state is #{vm.toolsRunningStatus}. powering up server..."
|
214
|
+
start_vm(vm)
|
215
|
+
else
|
216
|
+
restart_server(action_handler, machine_spec, vm)
|
217
|
+
end
|
207
218
|
now = Time.now.utc
|
208
|
-
until (Time.now.utc - now) >
|
219
|
+
until (Time.now.utc - now) > 60 || (!vm.guest.ipAddress.nil? && vm.guest.ipAddress.length > 0) do
|
209
220
|
print "-"
|
210
221
|
sleep 5
|
211
222
|
end
|
212
|
-
if vm.guest.ipAddress.nil? || vm.guest.ipAddress.length == 0
|
213
|
-
Chef::Log.info "rebooting..."
|
214
|
-
if vm.guest.toolsRunningStatus != "guestToolsRunning"
|
215
|
-
Chef::Log.info "tools have stopped. current power state is #{vm.runtime.powerState} and tools state is #{vm.toolsRunningStatus}. powering up server..."
|
216
|
-
start_vm(vm)
|
217
|
-
else
|
218
|
-
restart_server(action_handler, machine_spec, vm)
|
219
|
-
end
|
220
|
-
now = Time.now.utc
|
221
|
-
until (Time.now.utc - now) > 60 || (!vm.guest.ipAddress.nil? && vm.guest.ipAddress.length > 0) do
|
222
|
-
print "-"
|
223
|
-
sleep 5
|
224
|
-
end
|
225
|
-
end
|
226
223
|
end
|
227
224
|
end
|
228
225
|
|
@@ -242,7 +239,7 @@ module ChefMetalVsphere
|
|
242
239
|
|
243
240
|
machine = machine_for(machine_spec, machine_options, vm)
|
244
241
|
|
245
|
-
if
|
242
|
+
if has_static_ip(bootstrap_options) && !is_windows?(vm)
|
246
243
|
setup_ubuntu_dns(machine, bootstrap_options, machine_spec)
|
247
244
|
end
|
248
245
|
|