clc-chef-metal-vsphere 0.3.57 → 0.3.58
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/kitchen/driver/vsphere.rb +15 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 320cf814982592925b703c55efce7238175f802d
|
4
|
+
data.tar.gz: cef3c45eee6123a46e006d83ea5e2c7ae2cec087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d38bd1e21ae12d28cf0f9c474a0c77fc95f1c41635d4a84ea25e50635a94e3fbea03aa2fcd13217f854a880737602dca963acfe4e307a241b491fb97385d9ef4
|
7
|
+
data.tar.gz: c0c53fc364cc0d1865adeebe11a1c881fd37a64e28a2a8ac87088a4c20201bf14fe51b26a092a679bbe17bfbcb8a21ccb6b3d64142ec72de15e8dc9f319f1477
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'json'
|
1
2
|
require 'kitchen'
|
2
3
|
require 'chef_metal_vsphere/vsphere_driver'
|
3
4
|
require 'chef_metal/chef_machine_spec'
|
@@ -35,6 +36,18 @@ module Kitchen
|
|
35
36
|
state[:hostname] = machine_spec.location['ipaddress']
|
36
37
|
state[:vsphere_name] = config[:server_name]
|
37
38
|
end
|
39
|
+
|
40
|
+
node_file = File.join(instance.busser[:test_base_path], "nodes/#{instance.suite.name}.json")
|
41
|
+
node = {
|
42
|
+
:id => instance.suite.name,
|
43
|
+
:automatic => {
|
44
|
+
:ipaddress => state[:hostname]
|
45
|
+
}
|
46
|
+
}
|
47
|
+
File.open(node_file, 'w') do |out|
|
48
|
+
out << JSON.pretty_generate(node)
|
49
|
+
end
|
50
|
+
|
38
51
|
end
|
39
52
|
|
40
53
|
def destroy(state)
|
@@ -49,6 +62,8 @@ module Kitchen
|
|
49
62
|
state.delete(:server_id)
|
50
63
|
state.delete(:hostname)
|
51
64
|
state.delete(:vsphere_name)
|
65
|
+
|
66
|
+
File.delete(File.join(instance.busser[:test_base_path], "nodes/#{instance.suite.name}.json"))
|
52
67
|
end
|
53
68
|
|
54
69
|
def with_metal_driver(name, &block)
|
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.
|
4
|
+
version: 0.3.58
|
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-10-
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|