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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1af91c22e6628b4464932aa8e00c5bd8e98579d2
4
- data.tar.gz: de6c8d8d4ba8b4598c47650f3d7efb1ec04492e9
3
+ metadata.gz: 004372fe9c9c3ad94b5e8dd7c0d586347fc6d67f
4
+ data.tar.gz: c9dc1936c513c02464381c88c2c4998fe296550e
5
5
  SHA512:
6
- metadata.gz: 420b870bd00a8b10e8b680ffa6a54f008f7fcd31e205e3d4d2dd9343010aae55d71bf83d6cc9cbbfc18ff678cabbe9e32d80009268896015e51d0e28d1281212
7
- data.tar.gz: c174befdfccf2787129d72c4823ca0e8c07cd31ee87bc33042ed0215e3d43963f151602bc0c6ae827b7b61ac0c82ae85e7f6a6ebbc75303842998f889bac8266
6
+ metadata.gz: 7006e23c8a7a3e86e0ceeda019a0f733c21e56aafad253d2ff57da20e62fe58d2539b37907c29bd6694d6dc26ca6ad9b14f3d585d3c2bff80fadb93bd72f2d8c
7
+ data.tar.gz: 645a05ada0ef6142e3ec88ae558aa89dbff9bac379fb296eb3969b60696f2ff45c9957762c6139b58881c159c3836683712e3164c21b367e4b9c848e686f5b31
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.18'
2
+ VERSION = '0.3.19'
3
3
  end
@@ -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
- is_static = false
202
- if has_static_ip(bootstrap_options)
203
- is_static = true
204
- transport = transport_for(machine_spec, machine_options, vm)
205
- if !transport.available?
206
- Chef::Log.info "waiting for customizations to complete"
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) > 45 || (!vm.guest.ipAddress.nil? && vm.guest.ipAddress.length > 0) do
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 is_static && !is_windows?(vm)
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-chef-metal-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud