bosh-registry 1.5.0.pre.1492 → 1.5.0.pre.1504

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -77,6 +77,8 @@ These are the credentials to connect to OpenStack services:
77
77
  OpenStack region
78
78
  * `endpoint_type` (optional)
79
79
  OpenStack endpoint type (publicURL (default), adminURL, internalURL)
80
+ * `connection_options` (optional)
81
+ Hash containing optional connection parameters to the OpenStack API (`ssl_verify_peer`, `omit_default_port`, ...)
80
82
 
81
83
  ## Example
82
84
 
@@ -11,20 +11,21 @@ module Bosh::Registry
11
11
 
12
12
  @logger = Bosh::Registry.logger
13
13
 
14
- @openstack_properties = cloud_config["openstack"]
14
+ @openstack_properties = cloud_config['openstack']
15
15
 
16
- unless @openstack_properties["auth_url"].match(/\/tokens$/)
17
- @openstack_properties["auth_url"] = @openstack_properties["auth_url"] + "/tokens"
16
+ unless @openstack_properties['auth_url'].match(/\/tokens$/)
17
+ @openstack_properties['auth_url'] = @openstack_properties['auth_url'] + '/tokens'
18
18
  end
19
19
 
20
20
  @openstack_options = {
21
- :provider => "OpenStack",
22
- :openstack_auth_url => @openstack_properties["auth_url"],
23
- :openstack_username => @openstack_properties["username"],
24
- :openstack_api_key => @openstack_properties["api_key"],
25
- :openstack_tenant => @openstack_properties["tenant"],
26
- :openstack_region => @openstack_properties["region"],
27
- :openstack_endpoint_type => @openstack_properties["endpoint_type"]
21
+ :provider => 'OpenStack',
22
+ :openstack_auth_url => @openstack_properties['auth_url'],
23
+ :openstack_username => @openstack_properties['username'],
24
+ :openstack_api_key => @openstack_properties['api_key'],
25
+ :openstack_tenant => @openstack_properties['tenant'],
26
+ :openstack_region => @openstack_properties['region'],
27
+ :openstack_endpoint_type => @openstack_properties['endpoint_type'],
28
+ :connection_options => @openstack_properties['connection_options']
28
29
  }
29
30
  end
30
31
 
@@ -33,13 +34,13 @@ module Bosh::Registry
33
34
  end
34
35
 
35
36
  def validate_options(cloud_config)
36
- unless cloud_config.has_key?("openstack") &&
37
- cloud_config["openstack"].is_a?(Hash) &&
38
- cloud_config["openstack"]["auth_url"] &&
39
- cloud_config["openstack"]["username"] &&
40
- cloud_config["openstack"]["api_key"] &&
41
- cloud_config["openstack"]["tenant"]
42
- raise ConfigError, "Invalid OpenStack configuration parameters"
37
+ unless cloud_config.has_key?('openstack') &&
38
+ cloud_config['openstack'].is_a?(Hash) &&
39
+ cloud_config['openstack']['auth_url'] &&
40
+ cloud_config['openstack']['username'] &&
41
+ cloud_config['openstack']['api_key'] &&
42
+ cloud_config['openstack']['tenant']
43
+ raise ConfigError, 'Invalid OpenStack configuration parameters'
43
44
  end
44
45
  end
45
46
 
@@ -66,4 +67,4 @@ module Bosh::Registry
66
67
 
67
68
  end
68
69
 
69
- end
70
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Bosh
4
4
  module Registry
5
- VERSION = '1.5.0.pre.1492'
5
+ VERSION = '1.5.0.pre.1504'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-registry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0.pre.1492
4
+ version: 1.5.0.pre.1504
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-06 00:00:00.000000000 Z
12
+ date: 2013-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: 1.8.5
110
110
  description: ! 'BOSH Registry
111
111
 
112
- 966b08'
112
+ 882c2b'
113
113
  email: support@cloudfoundry.com
114
114
  executables:
115
115
  - bosh-registry