bosh_deployer 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/config/vcloud_defaults.yml +38 -0
- data/lib/deployer/instance_manager/vcloud.rb +38 -0
- data/lib/deployer/version.rb +1 -1
- metadata +26 -8
@@ -0,0 +1,38 @@
|
|
1
|
+
---
|
2
|
+
name:
|
3
|
+
|
4
|
+
logging:
|
5
|
+
level: INFO
|
6
|
+
|
7
|
+
dir:
|
8
|
+
|
9
|
+
network:
|
10
|
+
dns: []
|
11
|
+
cloud_properties:
|
12
|
+
name:
|
13
|
+
|
14
|
+
env:
|
15
|
+
bosh:
|
16
|
+
password:
|
17
|
+
|
18
|
+
resources:
|
19
|
+
persistent_disk: 4096
|
20
|
+
cloud_properties:
|
21
|
+
ram: 1024
|
22
|
+
disk: 4096
|
23
|
+
cpu: 1
|
24
|
+
|
25
|
+
cloud:
|
26
|
+
plugin: vcloud
|
27
|
+
properties:
|
28
|
+
agent:
|
29
|
+
ntp: []
|
30
|
+
blobstore:
|
31
|
+
plugin: local
|
32
|
+
properties:
|
33
|
+
blobstore_path: /var/vcap/micro_bosh/data/cache
|
34
|
+
mbus:
|
35
|
+
vcds: []
|
36
|
+
|
37
|
+
apply_spec:
|
38
|
+
properties: {}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Copyright (c) 2009-2012 VMware, Inc.
|
2
|
+
|
3
|
+
module Bosh::Deployer
|
4
|
+
class InstanceManager
|
5
|
+
|
6
|
+
class Vcloud < InstanceManager
|
7
|
+
|
8
|
+
def update_spec(spec)
|
9
|
+
spec = super(spec)
|
10
|
+
properties = spec["properties"]
|
11
|
+
|
12
|
+
properties["vcd"] =
|
13
|
+
Config.spec_properties["vcd"] ||
|
14
|
+
Config.cloud_options["properties"]["vcds"].first.dup
|
15
|
+
|
16
|
+
properties["vcd"]["address"] ||= properties["vcd"]["url"]
|
17
|
+
|
18
|
+
spec
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [Integer] size in MiB
|
22
|
+
def disk_size(cid)
|
23
|
+
cloud.get_disk_size_mb(cid)
|
24
|
+
end
|
25
|
+
|
26
|
+
def persistent_disk_changed?
|
27
|
+
Config.resources['persistent_disk'] != disk_size(state.disk_cid)
|
28
|
+
end
|
29
|
+
|
30
|
+
def check_dependencies
|
31
|
+
if Bosh::Common.which(%w[genisoimage mkisofs]).nil?
|
32
|
+
err("either of 'genisoimage' or 'mkisofs' commands must be present")
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
data/lib/deployer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh_deployer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
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: 2012-11-
|
12
|
+
date: 2012-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bosh_cli
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.
|
37
|
+
version: 0.5.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,23 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
45
|
+
version: 0.5.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bosh_vcloud_cpi
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.4.8
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.4.8
|
46
62
|
- !ruby/object:Gem::Dependency
|
47
63
|
name: bosh_vsphere_cpi
|
48
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +66,7 @@ dependencies:
|
|
50
66
|
requirements:
|
51
67
|
- - ~>
|
52
68
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.5.
|
69
|
+
version: 0.5.1
|
54
70
|
type: :runtime
|
55
71
|
prerelease: false
|
56
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +74,7 @@ dependencies:
|
|
58
74
|
requirements:
|
59
75
|
- - ~>
|
60
76
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.5.
|
77
|
+
version: 0.5.1
|
62
78
|
- !ruby/object:Gem::Dependency
|
63
79
|
name: bosh_aws_cpi
|
64
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,6 +179,7 @@ extra_rdoc_files: []
|
|
163
179
|
files:
|
164
180
|
- config/aws_defaults.yml
|
165
181
|
- config/openstack_defaults.yml
|
182
|
+
- config/vcloud_defaults.yml
|
166
183
|
- config/vsphere_defaults.yml
|
167
184
|
- lib/bosh/cli/commands/micro.rb
|
168
185
|
- lib/deployer.rb
|
@@ -171,6 +188,7 @@ files:
|
|
171
188
|
- lib/deployer/instance_manager.rb
|
172
189
|
- lib/deployer/instance_manager/aws.rb
|
173
190
|
- lib/deployer/instance_manager/openstack.rb
|
191
|
+
- lib/deployer/instance_manager/vcloud.rb
|
174
192
|
- lib/deployer/instance_manager/vsphere.rb
|
175
193
|
- lib/deployer/instance_manager_helpers.rb
|
176
194
|
- lib/deployer/models/instance.rb
|
@@ -192,7 +210,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
210
|
version: '0'
|
193
211
|
segments:
|
194
212
|
- 0
|
195
|
-
hash:
|
213
|
+
hash: 2681661945241081021
|
196
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
215
|
none: false
|
198
216
|
requirements:
|
@@ -201,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
219
|
version: '0'
|
202
220
|
segments:
|
203
221
|
- 0
|
204
|
-
hash:
|
222
|
+
hash: 2681661945241081021
|
205
223
|
requirements: []
|
206
224
|
rubyforge_project:
|
207
225
|
rubygems_version: 1.8.24
|