bosh-cloudfoundry 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog.md +1 -0
- data/README.md +7 -7
- data/bosh-cloudfoundry.gemspec +1 -1
- data/bosh_release/.final_builds/jobs/cloud_controller_ng/index.yml +30 -0
- data/bosh_release/.final_builds/jobs/collector/index.yml +5 -0
- data/bosh_release/.final_builds/jobs/dashboard/index.yml +5 -0
- data/bosh_release/.final_builds/jobs/dea_logging_agent/index.yml +17 -0
- data/bosh_release/.final_builds/jobs/dea_next/index.yml +20 -0
- data/bosh_release/.final_builds/jobs/gorouter/index.yml +15 -0
- data/bosh_release/.final_builds/jobs/health_manager_next/index.yml +15 -0
- data/bosh_release/.final_builds/jobs/loggregator/index.yml +22 -0
- data/bosh_release/.final_builds/jobs/loggregatorrouter/index.yml +7 -0
- data/bosh_release/.final_builds/jobs/login/index.yml +25 -0
- data/bosh_release/.final_builds/jobs/narc/index.yml +7 -0
- data/bosh_release/.final_builds/jobs/nats/index.yml +5 -0
- data/bosh_release/.final_builds/jobs/saml_login/index.yml +20 -0
- data/bosh_release/.final_builds/jobs/syslog_aggregator/index.yml +20 -0
- data/bosh_release/.final_builds/jobs/uaa/index.yml +15 -0
- data/bosh_release/.final_builds/packages/buildpack_cache/index.yml +5 -0
- data/bosh_release/.final_builds/packages/cfop/index.yml +7 -0
- data/bosh_release/.final_builds/packages/cloud_controller_ng/index.yml +35 -0
- data/bosh_release/.final_builds/packages/collector/index.yml +30 -0
- data/bosh_release/.final_builds/packages/dashboard/index.yml +5 -0
- data/bosh_release/.final_builds/packages/dea_logging_agent/index.yml +32 -0
- data/bosh_release/.final_builds/packages/dea_next/index.yml +35 -0
- data/bosh_release/.final_builds/packages/golang/index.yml +5 -0
- data/bosh_release/.final_builds/packages/gorouter/index.yml +35 -0
- data/bosh_release/.final_builds/packages/health_manager_next/index.yml +20 -0
- data/bosh_release/.final_builds/packages/loggregator/index.yml +32 -0
- data/bosh_release/.final_builds/packages/loggregatorrouter/index.yml +17 -0
- data/bosh_release/.final_builds/packages/login/index.yml +35 -0
- data/bosh_release/.final_builds/packages/narc/index.yml +17 -0
- data/bosh_release/.final_builds/packages/ruby/index.yml +5 -0
- data/bosh_release/.final_builds/packages/saml_login/index.yml +35 -0
- data/bosh_release/.final_builds/packages/syslog_aggregator/index.yml +5 -0
- data/bosh_release/.final_builds/packages/uaa/index.yml +35 -0
- data/bosh_release/.final_builds/packages/warden/index.yml +20 -0
- data/bosh_release/config/final.yml +1 -1
- data/bosh_release/releases/cf-136.yml +336 -0
- data/bosh_release/releases/cf-137.yml +329 -0
- data/bosh_release/releases/cf-138.yml +323 -0
- data/bosh_release/releases/cf-139.yml +350 -0
- data/bosh_release/releases/cf-140.yml +350 -0
- data/bosh_release/releases/cf-141.yml +349 -0
- data/bosh_release/releases/cf-release-135.yml +310 -0
- data/bosh_release/releases/index.yml +14 -0
- data/lib/bosh/cli/commands/01_prepare_bosh_for_cf.rb +11 -1
- data/lib/bosh/cli/commands/02_create_cf.rb +2 -0
- data/lib/bosh/cloudfoundry/deployment_attributes.rb +29 -3
- data/lib/bosh/cloudfoundry/release_version.rb +11 -2
- data/spec/assets/v132/aws/large.yml +2 -3
- data/spec/assets/v132/aws/medium.yml +4 -5
- data/spec/assets/v133/aws/large.yml +2 -3
- data/spec/assets/v133/aws/medium.yml +4 -5
- data/spec/assets/v141/aws/large.yml +334 -0
- data/spec/assets/v141/aws/medium.yml +293 -0
- data/spec/commands/command_prepare_cf_spec.rb +3 -5
- data/spec/deployment_attributes_spec.rb +6 -4
- data/spec/deployment_file_spec.rb +22 -20
- data/spec/release_version_cpi_spec.rb +2 -4
- data/spec/release_version_spec.rb +3 -5
- data/spec/spec_helper.rb +4 -0
- data/templates/v132/aws/large/deployment_file.yml.erb +2 -3
- data/templates/v132/aws/medium/deployment_file.yml.erb +4 -5
- data/templates/v132/openstack/large/deployment_file.yml.erb +2 -3
- data/templates/v132/openstack/medium/deployment_file.yml.erb +4 -5
- data/templates/v133/aws/large/deployment_file.yml.erb +2 -3
- data/templates/v133/aws/medium/deployment_file.yml.erb +4 -5
- data/templates/v133/openstack/large/deployment_file.yml.erb +2 -3
- data/templates/v133/openstack/medium/deployment_file.yml.erb +4 -5
- data/templates/v134/aws/large/deployment_file.yml.erb +2 -3
- data/templates/v134/aws/medium/deployment_file.yml.erb +4 -5
- data/templates/v134/openstack/large/deployment_file.yml.erb +2 -3
- data/templates/v134/openstack/medium/deployment_file.yml.erb +4 -5
- data/templates/v136/aws/large/deployment_file.yml.erb +371 -0
- data/templates/v136/aws/large/spec +6 -0
- data/templates/v136/aws/medium/deployment_file.yml.erb +330 -0
- data/templates/v136/aws/medium/spec +6 -0
- data/templates/v136/aws/small/README.md +5 -0
- data/templates/v136/aws/spec +6 -0
- data/templates/v136/openstack/large/deployment_file.yml.erb +371 -0
- data/templates/v136/openstack/large/spec +6 -0
- data/templates/v136/openstack/medium/deployment_file.yml.erb +330 -0
- data/templates/v136/openstack/medium/spec +6 -0
- data/templates/v136/openstack/spec +6 -0
- data/templates/v136/spec +14 -0
- data/templates/v141/aws/large/deployment_file.yml.erb +373 -0
- data/templates/v141/aws/large/spec +6 -0
- data/templates/v141/aws/medium/deployment_file.yml.erb +332 -0
- data/templates/v141/aws/medium/spec +6 -0
- data/templates/v141/aws/small/README.md +5 -0
- data/templates/v141/aws/spec +6 -0
- data/templates/v141/openstack/large/deployment_file.yml.erb +372 -0
- data/templates/v141/openstack/large/spec +6 -0
- data/templates/v141/openstack/medium/deployment_file.yml.erb +331 -0
- data/templates/v141/openstack/medium/spec +6 -0
- data/templates/v141/openstack/spec +6 -0
- data/templates/v141/spec +16 -0
- data/tutorials/activities/repair-a-cloud-foundry.md +128 -0
- data/tutorials/build-your-own-heroku-with-cloudfoundry.md +12 -11
- metadata +49 -4
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: demo
|
|
3
|
+
director_uuid: UUID
|
|
4
|
+
|
|
5
|
+
releases:
|
|
6
|
+
- name: cf
|
|
7
|
+
version: 141
|
|
8
|
+
|
|
9
|
+
networks:
|
|
10
|
+
- name: floating
|
|
11
|
+
type: vip
|
|
12
|
+
cloud_properties: {}
|
|
13
|
+
- name: default
|
|
14
|
+
type: dynamic
|
|
15
|
+
cloud_properties:
|
|
16
|
+
security_groups:
|
|
17
|
+
- default
|
|
18
|
+
|
|
19
|
+
update:
|
|
20
|
+
canaries: 1
|
|
21
|
+
canary_watch_time: 30000-60000
|
|
22
|
+
update_watch_time: 30000-60000
|
|
23
|
+
max_in_flight: 4
|
|
24
|
+
|
|
25
|
+
compilation:
|
|
26
|
+
workers: 6
|
|
27
|
+
network: default
|
|
28
|
+
reuse_compilation_vms: true
|
|
29
|
+
cloud_properties:
|
|
30
|
+
instance_type: m1.medium
|
|
31
|
+
|
|
32
|
+
resource_pools:
|
|
33
|
+
- name: small
|
|
34
|
+
network: default
|
|
35
|
+
size: 4
|
|
36
|
+
stemcell:
|
|
37
|
+
name: bosh-stemcell
|
|
38
|
+
version: latest
|
|
39
|
+
cloud_properties:
|
|
40
|
+
instance_type: m1.small
|
|
41
|
+
|
|
42
|
+
- name: medium
|
|
43
|
+
network: default
|
|
44
|
+
size: 0
|
|
45
|
+
stemcell:
|
|
46
|
+
name: bosh-stemcell
|
|
47
|
+
version: latest
|
|
48
|
+
cloud_properties:
|
|
49
|
+
instance_type: m1.medium
|
|
50
|
+
|
|
51
|
+
jobs:
|
|
52
|
+
- name: data
|
|
53
|
+
release: cf
|
|
54
|
+
template:
|
|
55
|
+
- postgres
|
|
56
|
+
- debian_nfs_server
|
|
57
|
+
instances: 1
|
|
58
|
+
resource_pool: small
|
|
59
|
+
persistent_disk: 4096
|
|
60
|
+
networks:
|
|
61
|
+
- name: default
|
|
62
|
+
default:
|
|
63
|
+
- dns
|
|
64
|
+
- gateway
|
|
65
|
+
properties:
|
|
66
|
+
db: databases
|
|
67
|
+
|
|
68
|
+
- name: core
|
|
69
|
+
release: cf
|
|
70
|
+
template:
|
|
71
|
+
- nats
|
|
72
|
+
- health_manager_next
|
|
73
|
+
- uaa
|
|
74
|
+
instances: 1
|
|
75
|
+
resource_pool: small
|
|
76
|
+
networks:
|
|
77
|
+
- name: default
|
|
78
|
+
default:
|
|
79
|
+
- dns
|
|
80
|
+
- gateway
|
|
81
|
+
|
|
82
|
+
- name: api
|
|
83
|
+
release: cf
|
|
84
|
+
template:
|
|
85
|
+
- cloud_controller_ng
|
|
86
|
+
- gorouter
|
|
87
|
+
instances: 1
|
|
88
|
+
resource_pool: small
|
|
89
|
+
networks:
|
|
90
|
+
- name: default
|
|
91
|
+
default:
|
|
92
|
+
- dns
|
|
93
|
+
- gateway
|
|
94
|
+
- name: floating
|
|
95
|
+
static_ips:
|
|
96
|
+
- 1.2.3.4
|
|
97
|
+
properties:
|
|
98
|
+
db: databases
|
|
99
|
+
|
|
100
|
+
- name: dea
|
|
101
|
+
release: cf
|
|
102
|
+
template:
|
|
103
|
+
- dea_next
|
|
104
|
+
instances: 1
|
|
105
|
+
resource_pool: small
|
|
106
|
+
networks:
|
|
107
|
+
- name: default
|
|
108
|
+
default: [dns, gateway]
|
|
109
|
+
|
|
110
|
+
properties:
|
|
111
|
+
cf:
|
|
112
|
+
name: demo
|
|
113
|
+
dns: mycloud.com
|
|
114
|
+
ip_addresses: ["1.2.3.4"]
|
|
115
|
+
deployment_size: medium
|
|
116
|
+
security_group: default
|
|
117
|
+
persistent_disk: 4096
|
|
118
|
+
common_password: qwertyasdfgh
|
|
119
|
+
dea_server_ram: 1500
|
|
120
|
+
dea_container_depot_disk: 10240
|
|
121
|
+
|
|
122
|
+
domain: mycloud.com
|
|
123
|
+
system_domain: mycloud.com.com
|
|
124
|
+
system_domain_organization: system_domain
|
|
125
|
+
app_domains:
|
|
126
|
+
- mycloud.com
|
|
127
|
+
|
|
128
|
+
networks:
|
|
129
|
+
apps: default
|
|
130
|
+
management: default
|
|
131
|
+
|
|
132
|
+
nats:
|
|
133
|
+
address: 0.core.default.demo.microbosh
|
|
134
|
+
port: 4222
|
|
135
|
+
user: nats
|
|
136
|
+
password: qwertyasdfgh
|
|
137
|
+
authorization_timeout: 5
|
|
138
|
+
|
|
139
|
+
router:
|
|
140
|
+
port: 8081
|
|
141
|
+
status:
|
|
142
|
+
port: 8080
|
|
143
|
+
user: gorouter
|
|
144
|
+
password: qwertyasdfgh
|
|
145
|
+
|
|
146
|
+
dea: &dea
|
|
147
|
+
memory_mb: 1500
|
|
148
|
+
disk_mb: 10240
|
|
149
|
+
directory_server_protocol: http
|
|
150
|
+
|
|
151
|
+
dea_next: *dea
|
|
152
|
+
|
|
153
|
+
syslog_aggregator:
|
|
154
|
+
address: 0.syslog-aggregator.default.demo.microbosh
|
|
155
|
+
port: 54321
|
|
156
|
+
|
|
157
|
+
nfs_server:
|
|
158
|
+
address: 0.data.default.demo.microbosh
|
|
159
|
+
network: "*.demo.microbosh"
|
|
160
|
+
idmapd_domain: mycloud.com
|
|
161
|
+
|
|
162
|
+
debian_nfs_server:
|
|
163
|
+
no_root_squash: true
|
|
164
|
+
|
|
165
|
+
databases: &databases
|
|
166
|
+
db_scheme: postgres
|
|
167
|
+
address: 0.data.default.demo.microbosh
|
|
168
|
+
port: 5524
|
|
169
|
+
roles:
|
|
170
|
+
- tag: admin
|
|
171
|
+
name: ccadmin
|
|
172
|
+
password: qwertyasdfgh
|
|
173
|
+
- tag: admin
|
|
174
|
+
name: uaaadmin
|
|
175
|
+
password: qwertyasdfgh
|
|
176
|
+
databases:
|
|
177
|
+
- tag: cc
|
|
178
|
+
name: ccdb
|
|
179
|
+
citext: true
|
|
180
|
+
- tag: uaa
|
|
181
|
+
name: uaadb
|
|
182
|
+
citext: true
|
|
183
|
+
|
|
184
|
+
ccdb: &ccdb
|
|
185
|
+
db_scheme: postgres
|
|
186
|
+
address: 0.data.default.demo.microbosh
|
|
187
|
+
port: 5524
|
|
188
|
+
roles:
|
|
189
|
+
- tag: admin
|
|
190
|
+
name: ccadmin
|
|
191
|
+
password: qwertyasdfgh
|
|
192
|
+
databases:
|
|
193
|
+
- tag: cc
|
|
194
|
+
name: ccdb
|
|
195
|
+
citext: true
|
|
196
|
+
|
|
197
|
+
ccdb_ng: *ccdb
|
|
198
|
+
|
|
199
|
+
uaadb:
|
|
200
|
+
db_scheme: postgresql
|
|
201
|
+
address: 0.data.default.demo.microbosh
|
|
202
|
+
port: 5524
|
|
203
|
+
roles:
|
|
204
|
+
- tag: admin
|
|
205
|
+
name: uaaadmin
|
|
206
|
+
password: qwertyasdfgh
|
|
207
|
+
databases:
|
|
208
|
+
- tag: uaa
|
|
209
|
+
name: uaadb
|
|
210
|
+
citext: true
|
|
211
|
+
|
|
212
|
+
cc_api_version: v2
|
|
213
|
+
|
|
214
|
+
cc: &cc
|
|
215
|
+
logging_level: debug
|
|
216
|
+
external_host: ccng
|
|
217
|
+
srv_api_uri: http://api.mycloud.com
|
|
218
|
+
cc_partition: default
|
|
219
|
+
db_encryption_key: qwertyasdfgh
|
|
220
|
+
bootstrap_admin_email: admin@mycloud.com
|
|
221
|
+
bulk_api_password: qwertyasdfgh
|
|
222
|
+
uaa_resource_id: cloud_controller
|
|
223
|
+
staging_upload_user: uploaduser
|
|
224
|
+
staging_upload_password: qwertyasdfgh
|
|
225
|
+
resource_pool:
|
|
226
|
+
resource_directory_key: cc-resources
|
|
227
|
+
# Local provider when using NFS
|
|
228
|
+
fog_connection:
|
|
229
|
+
provider: Local
|
|
230
|
+
local_root: /var/vcap/shared
|
|
231
|
+
packages:
|
|
232
|
+
app_package_directory_key: cc-packages
|
|
233
|
+
droplets:
|
|
234
|
+
droplet_directory_key: cc-droplets
|
|
235
|
+
default_quota_definition: runaway
|
|
236
|
+
|
|
237
|
+
ccng: *cc
|
|
238
|
+
|
|
239
|
+
login:
|
|
240
|
+
enabled: false
|
|
241
|
+
|
|
242
|
+
uaa:
|
|
243
|
+
url: http://uaa.mycloud.com
|
|
244
|
+
spring_profiles: postgresql
|
|
245
|
+
no_ssl: true
|
|
246
|
+
catalina_opts: -Xmx768m -XX:MaxPermSize=256m
|
|
247
|
+
resource_id: account_manager
|
|
248
|
+
jwt:
|
|
249
|
+
signing_key: |
|
|
250
|
+
-----BEGIN RSA PRIVATE KEY-----
|
|
251
|
+
MIICXAIBAAKBgQDHFr+KICms+tuT1OXJwhCUmR2dKVy7psa8xzElSyzqx7oJyfJ1
|
|
252
|
+
JZyOzToj9T5SfTIq396agbHJWVfYphNahvZ/7uMXqHxf+ZH9BL1gk9Y6kCnbM5R6
|
|
253
|
+
0gfwjyW1/dQPjOzn9N394zd2FJoFHwdq9Qs0wBugspULZVNRxq7veq/fzwIDAQAB
|
|
254
|
+
AoGBAJ8dRTQFhIllbHx4GLbpTQsWXJ6w4hZvskJKCLM/o8R4n+0W45pQ1xEiYKdA
|
|
255
|
+
Z/DRcnjltylRImBD8XuLL8iYOQSZXNMb1h3g5/UGbUXLmCgQLOUUlnYt34QOQm+0
|
|
256
|
+
KvUqfMSFBbKMsYBAoQmNdTHBaz3dZa8ON9hh/f5TT8u0OWNRAkEA5opzsIXv+52J
|
|
257
|
+
duc1VGyX3SwlxiE2dStW8wZqGiuLH142n6MKnkLU4ctNLiclw6BZePXFZYIK+AkE
|
|
258
|
+
xQ+k16je5QJBAN0TIKMPWIbbHVr5rkdUqOyezlFFWYOwnMmw/BKa1d3zp54VP/P8
|
|
259
|
+
+5aQ2d4sMoKEOfdWH7UqMe3FszfYFvSu5KMCQFMYeFaaEEP7Jn8rGzfQ5HQd44ek
|
|
260
|
+
lQJqmq6CE2BXbY/i34FuvPcKU70HEEygY6Y9d8J3o6zQ0K9SYNu+pcXt4lkCQA3h
|
|
261
|
+
jJQQe5uEGJTExqed7jllQ0khFJzLMx0K6tj0NeeIzAaGCQz13oo2sCdeGRHO4aDh
|
|
262
|
+
HH6Qlq/6UOV5wP8+GAcCQFgRCcB+hrje8hfEEefHcFpyKH+5g1Eu1k0mLrxK2zd+
|
|
263
|
+
4SlotYRHgPCEubokb2S1zfZDWIXW3HmggnGgM949TlY=
|
|
264
|
+
-----END RSA PRIVATE KEY-----
|
|
265
|
+
verification_key: |
|
|
266
|
+
-----BEGIN PUBLIC KEY-----
|
|
267
|
+
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHFr+KICms+tuT1OXJwhCUmR2d
|
|
268
|
+
KVy7psa8xzElSyzqx7oJyfJ1JZyOzToj9T5SfTIq396agbHJWVfYphNahvZ/7uMX
|
|
269
|
+
qHxf+ZH9BL1gk9Y6kCnbM5R60gfwjyW1/dQPjOzn9N394zd2FJoFHwdq9Qs0wBug
|
|
270
|
+
spULZVNRxq7veq/fzwIDAQAB
|
|
271
|
+
-----END PUBLIC KEY-----
|
|
272
|
+
cc:
|
|
273
|
+
client_secret: qwertyasdfgh
|
|
274
|
+
admin:
|
|
275
|
+
client_secret: qwertyasdfgh
|
|
276
|
+
batch:
|
|
277
|
+
username: batchuser
|
|
278
|
+
password: qwertyasdfgh
|
|
279
|
+
client:
|
|
280
|
+
autoapprove:
|
|
281
|
+
- cf
|
|
282
|
+
clients:
|
|
283
|
+
cf:
|
|
284
|
+
override: true
|
|
285
|
+
authorized-grant-types: password,implicit,refresh_token
|
|
286
|
+
authorities: uaa.none
|
|
287
|
+
scope: cloud_controller.read,cloud_controller.write,openid,password.write,cloud_controller.admin,scim.read,scim.write
|
|
288
|
+
access-token-validity: 7200
|
|
289
|
+
refresh-token-validity: 1209600
|
|
290
|
+
scim:
|
|
291
|
+
users:
|
|
292
|
+
- admin|qwertyasdfgh|scim.write,scim.read,openid,cloud_controller.admin
|
|
293
|
+
- services|qwertyasdfgh|scim.write,scim.read,openid,cloud_controller.admin
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
require "bosh/cli/commands/01_prepare_bosh_for_cf"
|
|
2
2
|
|
|
3
3
|
describe Bosh::Cli::Command::PrepareBoshForCloudFoundry do
|
|
4
|
-
let(:latest_release_version_number) { 134 }
|
|
5
|
-
|
|
6
4
|
let(:command) { Bosh::Cli::Command::PrepareBoshForCloudFoundry.new }
|
|
7
5
|
let(:director) { instance_double("Bosh::Cli::Director") }
|
|
8
|
-
let(:aws_full_stemcell_url) { "http://bosh-jenkins-artifacts.s3.amazonaws.com/bosh-stemcell/aws/
|
|
6
|
+
let(:aws_full_stemcell_url) { "http://bosh-jenkins-artifacts.s3.amazonaws.com/bosh-stemcell/aws/bosh-stemcell-latest-aws-xen-ubuntu.tgz" }
|
|
9
7
|
|
|
10
8
|
before do
|
|
11
9
|
setup_home_dir
|
|
@@ -25,7 +23,7 @@ describe Bosh::Cli::Command::PrepareBoshForCloudFoundry do
|
|
|
25
23
|
director.should_receive(:list_releases).and_return([])
|
|
26
24
|
director.should_receive(:list_stemcells).and_return([])
|
|
27
25
|
|
|
28
|
-
release_yml = File.expand_path("../../../bosh_release/releases/cf
|
|
26
|
+
release_yml = File.expand_path("../../../bosh_release/releases/cf-#{latest_cf_release_version}.yml", __FILE__)
|
|
29
27
|
release_cmd = instance_double("Bosh::Cli::Command::Release")
|
|
30
28
|
release_cmd.should_receive(:upload).with(release_yml)
|
|
31
29
|
command.stub(:release_cmd).and_return(release_cmd)
|
|
@@ -96,7 +94,7 @@ describe Bosh::Cli::Command::PrepareBoshForCloudFoundry do
|
|
|
96
94
|
director.should_receive(:list_releases).and_return([])
|
|
97
95
|
director.should_receive(:list_stemcells).and_return([{"name" => "bosh-stemcell", "version" => "something"}])
|
|
98
96
|
|
|
99
|
-
release_yml = File.expand_path("../../../bosh_release/releases/cf
|
|
97
|
+
release_yml = File.expand_path("../../../bosh_release/releases/cf-#{latest_cf_release_version}.yml", __FILE__)
|
|
100
98
|
release_cmd = instance_double("Bosh::Cli::Command::Release")
|
|
101
99
|
release_cmd.should_receive(:upload).with(release_yml)
|
|
102
100
|
command.stub(:release_cmd).and_return(release_cmd)
|
|
@@ -11,6 +11,8 @@ describe Bosh::Cloudfoundry::DeploymentAttributes do
|
|
|
11
11
|
it { subject.persistent_disk.should == 4096 }
|
|
12
12
|
it { subject.security_group.should == "default" }
|
|
13
13
|
it { subject.common_password.should == "qwertyqwerty" }
|
|
14
|
+
it { subject.dea_server_ram.should == 1500 }
|
|
15
|
+
it { subject.dea_container_depot_disk.should == 10240 }
|
|
14
16
|
end
|
|
15
17
|
|
|
16
18
|
context "delayed default values" do
|
|
@@ -35,7 +37,7 @@ describe Bosh::Cloudfoundry::DeploymentAttributes do
|
|
|
35
37
|
it "returns default attributes" do
|
|
36
38
|
subject = Bosh::Cloudfoundry::DeploymentAttributes.new(director, bosh_status, release_version_cpi)
|
|
37
39
|
subject.available_attributes.sort.should ==
|
|
38
|
-
%w[common_password deployment_size name persistent_disk security_group].map(&:to_sym)
|
|
40
|
+
%w[common_password dea_container_depot_disk dea_server_ram deployment_size name persistent_disk security_group skip_dns_validation].map(&:to_sym)
|
|
39
41
|
end
|
|
40
42
|
|
|
41
43
|
it "returns additional attributes" do
|
|
@@ -43,7 +45,7 @@ describe Bosh::Cloudfoundry::DeploymentAttributes do
|
|
|
43
45
|
dns: "mycloud.com", ip_addresses: ["1.2.3.4"]
|
|
44
46
|
})
|
|
45
47
|
subject.available_attributes.sort.should ==
|
|
46
|
-
%w[common_password deployment_size dns ip_addresses name persistent_disk security_group].map(&:to_sym)
|
|
48
|
+
%w[common_password dea_container_depot_disk dea_server_ram deployment_size dns ip_addresses name persistent_disk security_group skip_dns_validation].map(&:to_sym)
|
|
47
49
|
end
|
|
48
50
|
|
|
49
51
|
# immutable_attributes ultimately determined by ReleaseVersion (from templates/vXYZ/spec)
|
|
@@ -57,7 +59,7 @@ describe Bosh::Cloudfoundry::DeploymentAttributes do
|
|
|
57
59
|
end
|
|
58
60
|
|
|
59
61
|
context "mutable attributes" do
|
|
60
|
-
let(:mutable_attributes) { %w[ip_addresses persistent_disk security_group].map(&:to_sym) }
|
|
62
|
+
let(:mutable_attributes) { %w[dea_server_ram ip_addresses persistent_disk security_group].map(&:to_sym) }
|
|
61
63
|
before { release_version_cpi.should_receive(:mutable_attributes).and_return(mutable_attributes) }
|
|
62
64
|
|
|
63
65
|
subject do
|
|
@@ -80,4 +82,4 @@ describe Bosh::Cloudfoundry::DeploymentAttributes do
|
|
|
80
82
|
end
|
|
81
83
|
end
|
|
82
84
|
end
|
|
83
|
-
end
|
|
85
|
+
end
|
|
@@ -50,30 +50,32 @@ describe Bosh::Cloudfoundry::DeploymentFile do
|
|
|
50
50
|
common_password: "qwertyasdfgh",
|
|
51
51
|
deployment_size: deployment_size
|
|
52
52
|
} }
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Bosh::Cloudfoundry::
|
|
57
|
-
|
|
53
|
+
# [133, 141].each do |release_version|
|
|
54
|
+
[141].each do |release_version|
|
|
55
|
+
let(:release_version_cpi) { Bosh::Cloudfoundry::ReleaseVersionCpi.for_cpi(release_version, bosh_cpi) }
|
|
56
|
+
let(:release_version_cpi_size) { Bosh::Cloudfoundry::ReleaseVersionCpiSize.new(release_version_cpi, deployment_size) }
|
|
57
|
+
let(:deployment_attributes) do
|
|
58
|
+
Bosh::Cloudfoundry::DeploymentAttributes.new(mock("director"), bosh_status, release_version_cpi_size, attributes)
|
|
59
|
+
end
|
|
58
60
|
|
|
59
|
-
|
|
61
|
+
subject { Bosh::Cloudfoundry::DeploymentFile.new(release_version_cpi_size, deployment_attributes, bosh_status) }
|
|
60
62
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
it "#{deployment_size} size" do
|
|
70
|
-
in_home_dir do
|
|
71
|
-
subject.prepare_environment
|
|
63
|
+
before do
|
|
64
|
+
subject.biff.stub(:deployment).and_return(home_file("deployments/cf/demo.yml"))
|
|
65
|
+
deployment_cmd = mock("deployment_cmd")
|
|
66
|
+
deployment_cmd.stub(:set_current).with(home_file("deployments/cf/demo.yml"))
|
|
67
|
+
deployment_cmd.stub(:perform)
|
|
68
|
+
subject.stub(:deployment_cmd).and_return(deployment_cmd)
|
|
69
|
+
end
|
|
72
70
|
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
it "#{deployment_size} size for v#{release_version}" do
|
|
72
|
+
in_home_dir do
|
|
73
|
+
subject.prepare_environment
|
|
74
|
+
subject.create_deployment_file
|
|
75
|
+
files_match(spec_asset("v#{release_version}/aws/#{deployment_size}.yml"), subject.deployment_file)
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
subject.deploy(non_interactive: true)
|
|
78
|
+
end
|
|
77
79
|
end
|
|
78
80
|
end
|
|
79
81
|
end
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
describe Bosh::Cloudfoundry::ReleaseVersionCpi do
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
subject { Bosh::Cloudfoundry::ReleaseVersionCpi.for_cpi(133, "aws") }
|
|
2
|
+
subject { Bosh::Cloudfoundry::ReleaseVersionCpi.for_cpi(latest_cf_release_version, "aws") }
|
|
5
3
|
|
|
6
4
|
it "has available deployment sizes" do
|
|
7
5
|
subject.available_deployment_sizes.should == %w[medium large]
|
|
@@ -14,6 +12,6 @@ describe Bosh::Cloudfoundry::ReleaseVersionCpi do
|
|
|
14
12
|
it "latest_for_cpi(bosh_cpi)" do
|
|
15
13
|
rvc = Bosh::Cloudfoundry::ReleaseVersionCpi.latest_for_cpi("aws")
|
|
16
14
|
rvc.cpi.should == "aws"
|
|
17
|
-
rvc.release_version_number.should ==
|
|
15
|
+
rvc.release_version_number.should == latest_cf_release_version
|
|
18
16
|
end
|
|
19
17
|
end
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
describe Bosh::Cloudfoundry::ReleaseVersion do
|
|
2
|
-
let(:latest_release_version_number) { 134 }
|
|
3
|
-
|
|
4
2
|
it "cannot accept versions lower than 132" do
|
|
5
3
|
expect { Bosh::Cloudfoundry::ReleaseVersion.for_version(131) }.to raise_error(RuntimeError)
|
|
6
4
|
end
|
|
@@ -10,15 +8,15 @@ describe Bosh::Cloudfoundry::ReleaseVersion do
|
|
|
10
8
|
end
|
|
11
9
|
|
|
12
10
|
it "finds an next available version match" do
|
|
13
|
-
Bosh::Cloudfoundry::ReleaseVersion.for_version(200).version_number.should ==
|
|
11
|
+
Bosh::Cloudfoundry::ReleaseVersion.for_version(200).version_number.should == latest_cf_release_version
|
|
14
12
|
end
|
|
15
13
|
|
|
16
14
|
it "knows available versions" do
|
|
17
|
-
Bosh::Cloudfoundry::ReleaseVersion.available_versions.should == [132, 133, 134]
|
|
15
|
+
Bosh::Cloudfoundry::ReleaseVersion.available_versions.should == [132, 133, 134, 136, 141]
|
|
18
16
|
end
|
|
19
17
|
|
|
20
18
|
it "knows latest version number" do
|
|
21
|
-
Bosh::Cloudfoundry::ReleaseVersion.latest_version_number.should ==
|
|
19
|
+
Bosh::Cloudfoundry::ReleaseVersion.latest_version_number.should == latest_cf_release_version
|
|
22
20
|
end
|
|
23
21
|
|
|
24
22
|
context "for v132" do
|