chef-metal-fogsphere 0.1.0.alpha.21 → 0.1.0.alpha.22

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: 38ae8a989198a560a68a05ba43cadd4fd489293c
4
- data.tar.gz: d398083a720bd5cd3b7b2c9ca4c64144b878aed6
3
+ metadata.gz: 1a04b4d5b99f487e81e29536de6db84d5989adf4
4
+ data.tar.gz: c19589c8c603c8d65829633e956dd874088b32d4
5
5
  SHA512:
6
- metadata.gz: 3977538dba50e11f128858b57cfafdcb1516d38c5b4fcc62797e7f488f5f52f2a0fd3b5dabc0bd2bdce5449e5706b0e7f8c09e645960f90b55df0690917f162b
7
- data.tar.gz: 41ae9ebd835f75c2df6b1e73e770987807c033ab59293ca475f298c650f3a2ef9071162947ab480eaee4e5ba35a087b24a85d5c6faf16925a35e6087e94273d3
6
+ metadata.gz: fdfd40b3a4e93578ad6972720a6c5a3520223ab71682e62e82204103944dc7a0e8e6b71e6d9e4f7734645ad3ed3c6de88b81ef708b558e6aaec1fb2a46fe0504
7
+ data.tar.gz: b3420036f69e14f9e9a00e0aba754edd44fde66e363fd79f144c2eb26d4226915aef87d6460919b7d02fb574b7554126a349c9f1bfc33aa8d5f50af773700b5a
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "chef-metal-fogsphere"
7
- gem.version = '0.1.0.alpha.21'
7
+ gem.version = '0.1.0.alpha.22'
8
8
  gem.license = 'Apache 2.0'
9
9
  gem.authors = ["Matt Wrock"]
10
10
  gem.email = ["matt@centurylinkcloud.com"]
data/lib/clc_driver.rb CHANGED
@@ -32,10 +32,19 @@ module ChefMetalVsphere
32
32
  end
33
33
 
34
34
  def self.compute_options_for(id, config)
35
- compute_options = { :provider => 'vsphere', :vsphere_server => id}
36
- config = { :driver_options => { :compute_options => compute_options }.merge(config)}
37
-
38
- [ config, id ]
35
+ driver_options = config[:driver_options] || {}
36
+ compute_options = driver_options[:compute_options] || {}
37
+ new_compute_options = {}
38
+ new_compute_options[:provider] = 'vsphere'
39
+ new_compute_options[:vphere_server] = id
40
+ new_config = { :driver_options => { :compute_options => new_compute_options }}
41
+ new_defaults = {
42
+ :driver_options => { :compute_options => {} },
43
+ :machine_options => { :bootstrap_options => {} }
44
+ }
45
+ result = Cheffish::MergedConfig.new(new_config, config, new_defaults)
46
+
47
+ [ result, id ]
39
48
  end
40
49
 
41
50
  # Create a new fog provisioner.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-metal-fogsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha.21
4
+ version: 0.1.0.alpha.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wrock