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 +4 -4
- data/chef-metal-fogsphere.gemspec +1 -1
- data/lib/clc_driver.rb +13 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a04b4d5b99f487e81e29536de6db84d5989adf4
|
4
|
+
data.tar.gz: c19589c8c603c8d65829633e956dd874088b32d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
[
|
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.
|