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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee59ac21f747eeb02eb8be24510ef4bfa6c60d95
4
- data.tar.gz: bf753011dbfc6f95d4df476b590323bd0756be5b
3
+ metadata.gz: 320cf814982592925b703c55efce7238175f802d
4
+ data.tar.gz: cef3c45eee6123a46e006d83ea5e2c7ae2cec087
5
5
  SHA512:
6
- metadata.gz: 5722a27861c79380a67faca83be74bdece12bd32f8a2d2818b06130b58227641e2a6f20358f8d02737e4db8ef3ac4fc42024f28293d7be69cc1f80c345519b23
7
- data.tar.gz: 8e7646193301c6e82494ac5e67b73c0d7ad61b221a8b8ad4849e4d2a5ad41883906a64dff2f97cb5766b73684fb8838f430fc80ee5cd4cfd7944873e30f49064
6
+ metadata.gz: d38bd1e21ae12d28cf0f9c474a0c77fc95f1c41635d4a84ea25e50635a94e3fbea03aa2fcd13217f854a880737602dca963acfe4e307a241b491fb97385d9ef4
7
+ data.tar.gz: c0c53fc364cc0d1865adeebe11a1c881fd37a64e28a2a8ac87088a4c20201bf14fe51b26a092a679bbe17bfbcb8a21ccb6b3d64142ec72de15e8dc9f319f1477
@@ -1,3 +1,3 @@
1
1
  module ChefMetalVsphere
2
- VERSION = '0.3.57'
2
+ VERSION = '0.3.58'
3
3
  end
@@ -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.57
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-19 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef