chef-provisioning-vsphere 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/Gemfile +5 -5
- data/LICENSE +19 -19
- data/LICENSE-Rally +20 -20
- data/README.md +269 -269
- data/Rakefile +22 -22
- data/chef-provisioning-vsphere.gemspec +28 -28
- data/contribution-notice +7 -7
- data/lib/chef/provisioning/driver_init/vsphere.rb +2 -2
- data/lib/chef/provisioning/vsphere_driver.rb +14 -14
- data/lib/chef/provisioning/vsphere_driver/clone_spec_builder.rb +205 -205
- data/lib/chef/provisioning/vsphere_driver/driver.rb +671 -671
- data/lib/chef/provisioning/vsphere_driver/version.rb +3 -3
- data/lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb +341 -341
- data/lib/chef/provisioning/vsphere_driver/vsphere_url.rb +45 -45
- data/lib/kitchen/driver/vsphere.rb +104 -100
- data/spec/integration_tests/.gitignore +1 -1
- data/spec/integration_tests/vsphere_driver_spec.rb +158 -158
- data/spec/unit_tests/VsphereDriver_spec.rb +132 -132
- data/spec/unit_tests/VsphereUrl_spec.rb +65 -65
- data/spec/unit_tests/clone_spec_builder_spec.rb +161 -161
- data/spec/unit_tests/support/fake_action_handler.rb +7 -7
- data/spec/unit_tests/support/vsphere_helper_stub.rb +52 -52
- metadata +3 -3
@@ -1,7 +1,7 @@
|
|
1
|
-
module ChefProvisioningVsphereStubs
|
2
|
-
class FakeActionHandler < Chef::Provisioning::ActionHandler
|
3
|
-
def puts(out)
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module ChefProvisioningVsphereStubs
|
2
|
+
class FakeActionHandler < Chef::Provisioning::ActionHandler
|
3
|
+
def puts(out)
|
4
|
+
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
@@ -1,52 +1,52 @@
|
|
1
|
-
module ChefProvisioningVsphereStubs
|
2
|
-
class VsphereHelperStub < ChefProvisioningVsphere::VsphereHelper
|
3
|
-
def initialize
|
4
|
-
end
|
5
|
-
|
6
|
-
def network_device_changes(action_handler, vm_template, options)
|
7
|
-
[
|
8
|
-
[RbVmomi::VIM::VirtualDeviceConfigSpec.new],
|
9
|
-
[RbVmomi::VIM::VirtualDeviceConfigSpec.new]
|
10
|
-
]
|
11
|
-
end
|
12
|
-
|
13
|
-
def find_host(host_name)
|
14
|
-
RbVmomi::VIM::HostSystem.new
|
15
|
-
end
|
16
|
-
|
17
|
-
def find_pool(pool_name)
|
18
|
-
RbVmomi::VIM::ResourcePool.new(nil, nil)
|
19
|
-
end
|
20
|
-
|
21
|
-
def find_datastore(datastore_name)
|
22
|
-
RbVmomi::VIM::Datastore.new
|
23
|
-
end
|
24
|
-
|
25
|
-
def find_customization_spec(options)
|
26
|
-
RbVmomi::VIM::CustomizationSpec.new
|
27
|
-
end
|
28
|
-
|
29
|
-
def create_delta_disk(vm_template)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
module RbVmomi
|
35
|
-
class VIM::HostSystem
|
36
|
-
attr_reader :parent
|
37
|
-
|
38
|
-
def parent
|
39
|
-
@parent ||= RbVmomi::VIM::ComputeResource.new
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
module RbVmomi
|
45
|
-
class VIM::ComputeResource
|
46
|
-
attr_reader :resourcePool
|
47
|
-
|
48
|
-
def resourcePool
|
49
|
-
@resourcePool ||= RbVmomi::VIM::ResourcePool.new(nil, nil)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
1
|
+
module ChefProvisioningVsphereStubs
|
2
|
+
class VsphereHelperStub < ChefProvisioningVsphere::VsphereHelper
|
3
|
+
def initialize
|
4
|
+
end
|
5
|
+
|
6
|
+
def network_device_changes(action_handler, vm_template, options)
|
7
|
+
[
|
8
|
+
[RbVmomi::VIM::VirtualDeviceConfigSpec.new],
|
9
|
+
[RbVmomi::VIM::VirtualDeviceConfigSpec.new]
|
10
|
+
]
|
11
|
+
end
|
12
|
+
|
13
|
+
def find_host(host_name)
|
14
|
+
RbVmomi::VIM::HostSystem.new
|
15
|
+
end
|
16
|
+
|
17
|
+
def find_pool(pool_name)
|
18
|
+
RbVmomi::VIM::ResourcePool.new(nil, nil)
|
19
|
+
end
|
20
|
+
|
21
|
+
def find_datastore(datastore_name)
|
22
|
+
RbVmomi::VIM::Datastore.new
|
23
|
+
end
|
24
|
+
|
25
|
+
def find_customization_spec(options)
|
26
|
+
RbVmomi::VIM::CustomizationSpec.new
|
27
|
+
end
|
28
|
+
|
29
|
+
def create_delta_disk(vm_template)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
module RbVmomi
|
35
|
+
class VIM::HostSystem
|
36
|
+
attr_reader :parent
|
37
|
+
|
38
|
+
def parent
|
39
|
+
@parent ||= RbVmomi::VIM::ComputeResource.new
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
module RbVmomi
|
45
|
+
class VIM::ComputeResource
|
46
|
+
attr_reader :resourcePool
|
47
|
+
|
48
|
+
def resourcePool
|
49
|
+
@resourcePool ||= RbVmomi::VIM::ResourcePool.new(nil, nil)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-provisioning-vsphere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CenturyLink Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbvmomi
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.4.
|
139
|
+
rubygems_version: 2.4.8
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Provisioner for creating vSphere VM instances in Chef Provisioning.
|