chef-provisioning-fog 0.19.0 → 0.19.1

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: fb7a20a86bedac40466c9f1ef6f3ffe0e6f8ada8
4
- data.tar.gz: e77ef8bf2a3f5a685e43495b4820c1d1c913c461
3
+ metadata.gz: 6c011278b512a9a0f08c5794fd7ba8d38d251483
4
+ data.tar.gz: caeff18ebe4907a5b2f750538c5c2587079407c5
5
5
  SHA512:
6
- metadata.gz: a1d2ea4273853a0b71603e5b5e36abe234646cdf8d5bc6297bb3d12987988349af74e5f0f83e5df64532c1e8ce9e2058f8178bb17091e34465cc6172b2675334
7
- data.tar.gz: e43836b5011677d59a494b3cf94115e9583e284e8f1fd0fce7321084afaf4b6f7bff891928e86af9804dc1916e2b2d95710355bb0fe8481e75a8ec8b49a43a3d
6
+ metadata.gz: 20b0a9db9b60e1aece918d338dc3089ecac85464b470f209ae3654a077fd933a94e21c41c695323a0fba0835d9d518a00e363c234ad38a5c5cc2ca34dac20cdf
7
+ data.tar.gz: f3762b665ddcf1751212aae0024d7b5361d24d58098c0cf2d9f7778ad26cd20bbd01e3e6a699df94c4fe0712fb2ab4997706bc3eaa19190dc0378d82a44863c1
data/README.md CHANGED
@@ -57,6 +57,25 @@ driver_options :compute_options => {
57
57
  }
58
58
  ```
59
59
 
60
+ [fog](http://fog.io) 1.38.0 (Newest release) has an issue with DigitalOcean. If
61
+ you want to use DigitalOcean and `chef-provisioning-fog` you need to down grade
62
+ your fog gem.
63
+
64
+ ```shell
65
+ $ gem install fog --version 1.37.0
66
+ Successfully installed fog-1.37.0
67
+ Parsing documentation for fog-1.37.0
68
+ $ gem uninstall fog
69
+
70
+ Select gem to uninstall:
71
+ 1. fog-1.37.0
72
+ 2. fog-1.38.0
73
+ 3. All versions
74
+ > 2
75
+ Successfully uninstalled fog-1.38.0
76
+ $
77
+ ```
78
+
60
79
  For a full example see [examples/digitalocean/simple.rb](examples/digitalocean/simple.rb).
61
80
 
62
81
  ### Google Compute Engine
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.homepage = 'https://github.com/opscode/chef-provisioning-fog'
14
14
 
15
15
  s.add_dependency 'chef-provisioning', '~> 1.0'
16
- s.add_dependency 'fog', '>= 1.38.0'
16
+ s.add_dependency 'fog', '>= 1.37.0'
17
17
  s.add_dependency 'google-api-client', "~> 0.8.0"
18
18
  s.add_dependency 'fog-softlayer' , '~> 1.1.0'
19
19
  s.add_dependency 'retryable'
@@ -48,12 +48,12 @@ module FogDriver
48
48
  result = Cheffish::MergedConfig.new(new_config, config, new_defaults)
49
49
 
50
50
  new_compute_options[:openstack_auth_url] = id if (id && id != '')
51
- credential = Fog.credentials
52
-
53
- new_compute_options[:openstack_username] ||= credential[:openstack_username]
54
- new_compute_options[:openstack_api_key] ||= credential[:openstack_api_key]
55
- new_compute_options[:openstack_auth_url] ||= credential[:openstack_auth_url]
56
- new_compute_options[:openstack_tenant] ||= credential[:openstack_tenant]
51
+
52
+ credential = Fog.credentials.find_all{ |k,v|
53
+ k.to_s.start_with?('openstack') }
54
+ credential.each { |k,v|
55
+ new_compute_options[k] ||= v
56
+ }
57
57
 
58
58
  id = result[:driver_options][:compute_options][:openstack_auth_url]
59
59
 
@@ -1,7 +1,7 @@
1
1
  class Chef
2
2
  module Provisioning
3
3
  module FogDriver
4
- VERSION = '0.19.0'
4
+ VERSION = '0.19.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-provisioning-fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-06-02 00:00:00.000000000 Z
15
+ date: 2016-08-02 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: chef-provisioning
@@ -34,14 +34,14 @@ dependencies:
34
34
  requirements:
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: 1.38.0
37
+ version: 1.37.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 1.38.0
44
+ version: 1.37.0
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: google-api-client
47
47
  requirement: !ruby/object:Gem::Requirement