clc-chef-metal-vsphere 0.3.46 → 0.3.47

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: afbee2bf3ee8cdd745b6af36604cdc85980d24ee
4
- data.tar.gz: 0210fbd720c027bd223bf24439aaa0cfb9cfa7c8
3
+ metadata.gz: 21fe13fd847fa963b5494065398f85d5d98051ed
4
+ data.tar.gz: 4a9b3015976eaae83c88830395565ad7277163f6
5
5
  SHA512:
6
- metadata.gz: 61c4a51805b6c274244a1f0c9960a536f1e98f0547b27975e6cfe2832e17dfa452bdb532f8d2e2393bb7eac25025a69427015d1413729a6d69cc67e6784e9431
7
- data.tar.gz: 49d78c8937bb8c83547c8d6c7195fec2ae1c1eabbe3f77267553d30b41de811bb566202889dcc399a150ab2e14499d07076513383ef98de657c652ffe6abd5cb
6
+ metadata.gz: 25fe01e873bd13217563e079a1bbb8ecc0875d535079c1b6cfaaac4560ecff919a05337a30f132d3c76290e13f12f6e9fe9dfe9f53b9beb94eea6e4d527092d1
7
+ data.tar.gz: ad376385cc6904237f585e2cb98a356df8ddc6326da6c502d9ecab2fec9ff577e6a39010eddad7d57f619e86949f770c6cb9ccb6d96049052f376825207ddc71
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.46'
2
+ VERSION = '0.3.47'
3
3
  end
@@ -136,7 +136,10 @@ module ChefMetalVsphere
136
136
  location: relocate_spec_for(dc_name, vm_template, options),
137
137
  powerOn: false,
138
138
  template: false,
139
- config: RbVmomi::VIM.VirtualMachineConfigSpec(:deviceChange => Array.new)
139
+ config: RbVmomi::VIM.VirtualMachineConfigSpec(
140
+ :cpuHotAddEnabled => true,
141
+ :memoryHotAddEnabled => true,
142
+ :deviceChange => Array.new)
140
143
  )
141
144
 
142
145
  clone_spec.customization = customization_options_from(action_handler, vm_template, vm_name, options)
@@ -108,6 +108,12 @@ describe "vsphere_driver" do
108
108
  disk_count = @vm.disks.count
109
109
  expect(@vm.disks[disk_count-1].capacityInKB).to eq(@metal_config[:machine_options][:bootstrap_options][:additional_disk_size_gb] * 1024 * 1024)
110
110
  end
111
+ it "has hot add cpu enabled" do
112
+ expect(@vm.config.cpuHotAddEnabled).to eq(true)
113
+ end
114
+ it "has hot add memory enabled" do
115
+ expect(@vm.config.memoryHotAddEnabled).to eq(true)
116
+ end
111
117
  it "has the correct IP address" do
112
118
  if @vm.guest.toolsRunningStatus != "guestToolsRunning"
113
119
  now = Time.now.utc
@@ -116,7 +122,7 @@ describe "vsphere_driver" do
116
122
  sleep 5
117
123
  end
118
124
  end
119
- expect(@vm.guest.net[1].ipAddress[1]).to eq(@metal_config[:machine_options][:bootstrap_options][:customization_spec][:ipsettings][:ip])
125
+ expect(@vm.guest.net.map { |net| net.ipAddress}.flatten).to include(@metal_config[:machine_options][:bootstrap_options][:customization_spec][:ipsettings][:ip])
120
126
  end
121
127
  end
122
128
 
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.46
4
+ version: 0.3.47
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-08-15 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef