clc-chef-metal-vsphere 0.3.35 → 0.3.36

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: 5627aeaa0a06bba6e555a0f325790cf894306987
4
- data.tar.gz: 867a9b91f2392932f6af5f9c918205391bdcb042
3
+ metadata.gz: 738fda0ee5a8377349e3823f4c893a1e4e610f3d
4
+ data.tar.gz: 3b0bc2bfaa0ebf2a23d698139a9a6ea6e27d152f
5
5
  SHA512:
6
- metadata.gz: 7a5b1709b40b063ad346668efd08266f4735b196e149b276f188256bba0def7b7bdc6016031bd816dbfc73afd4e678ee3587c4df1d0527cb5d452a672a507973
7
- data.tar.gz: 58887a83db84397eb05deeb6a6a241e61b56edd92ff7bf35939c7327e8bfcc5a6b3835f65f8026cef91464b5e4d4e1e831f28c0806d28fe447ded7da52de96fa
6
+ metadata.gz: d4453f11db5172b1fd720d67a5e86e2bfe441020cf9dda66d9d74f31033c63cf81fd2b5eba56c821146a027556d5c1346d14c1d38fc93e4195cd72b41c1c4609
7
+ data.tar.gz: 76a8092cc0218fb18252c3baa1f221dfb369fd827b8756b02823627e2c2c833d443e3878194dc15abf1a83ab17c3adaf3072c9a7f723ffeb137aca12a23accaf
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.35'
2
+ VERSION = '0.3.36'
3
3
  end
@@ -243,8 +243,6 @@ module ChefMetalVsphere
243
243
  end
244
244
  end
245
245
 
246
- add_extra_nic(action_handler, vm_template_for(bootstrap_options), bootstrap_options, vm)
247
-
248
246
  begin
249
247
  wait_for_transport(action_handler, machine_spec, machine_options, vm)
250
248
  rescue Timeout::Error
@@ -261,6 +259,13 @@ module ChefMetalVsphere
261
259
 
262
260
  machine = machine_for(machine_spec, machine_options, vm)
263
261
 
262
+ new_nics = add_extra_nic(action_handler, vm_template_for(bootstrap_options), bootstrap_options, vm)
263
+ if is_windows?(vm) && !new_nics.nil?
264
+ new_nics.each do |nic|
265
+ machine.execute_always("Disable-Netadapter -Name '#{nic.device.deviceInfo.label}' -Confirm:$false")
266
+ end
267
+ end
268
+
264
269
  if has_static_ip(bootstrap_options) && !is_windows?(vm)
265
270
  setup_ubuntu_dns(machine, bootstrap_options, machine_spec)
266
271
  end
@@ -485,7 +490,7 @@ module ChefMetalVsphere
485
490
  bootstrap_options = bootstrap_options_for(machine_spec, machine_options)
486
491
  ssh_options = bootstrap_options[:ssh]
487
492
  remote_host = ip_for(bootstrap_options, vm)
488
- winrm_options = {:user => "#{remote_host}\\#{ssh_options[:user]}", :pass => ssh_options[:password], :basic_auth_only => true}
493
+ winrm_options = {:user => "#{ssh_options[:user]}", :pass => ssh_options[:password], :basic_auth_only => true}
489
494
 
490
495
  ChefMetal::Transport::WinRM.new("http://#{remote_host}:5985/wsman", :plaintext, winrm_options, config)
491
496
  end
@@ -167,6 +167,7 @@ module ChefMetalVsphere
167
167
  action_handler.report_progress "Adding extra NICs"
168
168
  task = vm.ReconfigVM_Task(:spec => RbVmomi::VIM.VirtualMachineConfigSpec(:deviceChange => new_devices))
169
169
  task.wait_for_completion
170
+ new_devices
170
171
  end
171
172
  end
172
173
  end
@@ -252,18 +253,19 @@ module ChefMetalVsphere
252
253
 
253
254
  key = 4000
254
255
  networks.each_index do | i |
256
+ label = "Ethernet #{i+1}"
255
257
  if card = cards.shift
256
258
  key = card.key
257
259
  operation = RbVmomi::VIM::VirtualDeviceConfigSpecOperation('edit')
258
260
  action_handler.report_progress "changing template nic for #{networks[i]}"
259
261
  changes.push(
260
- network_adapter_for(operation, networks[i], "Network Adapter #{i+1}", key))
262
+ network_adapter_for(operation, networks[i], label, key))
261
263
  else
262
264
  key = key + 1
263
265
  operation = RbVmomi::VIM::VirtualDeviceConfigSpecOperation('add')
264
266
  action_handler.report_progress "will be adding nic for #{networks[i]}"
265
267
  additions.push(
266
- network_adapter_for(operation, networks[i], "Network Adapter #{i+1}", key))
268
+ network_adapter_for(operation, networks[i], label, key))
267
269
  end
268
270
  end
269
271
  [additions, changes]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clc-chef-metal-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.35
4
+ version: 0.3.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - CenturyLink Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-23 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef