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 +2 -0
- data/lib/bosh/registry/instance_manager/openstack.rb +19 -18
- data/lib/bosh/registry/version.rb +1 -1
- metadata +3 -3
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[
|
14
|
+
@openstack_properties = cloud_config['openstack']
|
15
15
|
|
16
|
-
unless @openstack_properties[
|
17
|
-
@openstack_properties[
|
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 =>
|
22
|
-
:openstack_auth_url => @openstack_properties[
|
23
|
-
:openstack_username => @openstack_properties[
|
24
|
-
:openstack_api_key => @openstack_properties[
|
25
|
-
:openstack_tenant => @openstack_properties[
|
26
|
-
:openstack_region => @openstack_properties[
|
27
|
-
:openstack_endpoint_type => @openstack_properties[
|
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?(
|
37
|
-
cloud_config[
|
38
|
-
cloud_config[
|
39
|
-
cloud_config[
|
40
|
-
cloud_config[
|
41
|
-
cloud_config[
|
42
|
-
raise ConfigError,
|
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
|
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.
|
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-
|
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
|
-
|
112
|
+
882c2b'
|
113
113
|
email: support@cloudfoundry.com
|
114
114
|
executables:
|
115
115
|
- bosh-registry
|