bosh-cloudfoundry 0.7.0.alpha.10 → 0.7.0.alpha.11

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -27,17 +27,16 @@ For a medium deployment the following VMs are created and have the following vit
27
27
 
28
28
  ```
29
29
  $ bosh create cf ... --deployment-size medium
30
- $ bosh vms --vitals
31
- +-----------+---------+---------------+-------------------------------+-----------------------+------+------+------+----------------+------------+------------+------------+------------+
32
- | Job/index | State | Resource Pool | IPs | Load | CPU | CPU | CPU | Memory Usage | Swap Usage | System | Ephemeral | Persistent |
33
- | | | | | (avg01, avg05, avg15) | User | Sys | Wait | | | Disk Usage | Disk Usage | Disk Usage |
34
- +-----------+---------+---------------+-------------------------------+-----------------------+------+------+------+----------------+------------+------------+------------+------------+
35
- | api/0 | running | small | 10.159.35.150, 54.225.102.129 | 0.06%, 0.08%, 0.13% | 0.1% | 0.2% | 0.0% | 13.7% (227.8M) | 0.0% (0B) | 49% | 1% | n/a |
36
- | core/0 | running | small | 10.118.153.76 | 1.25%, 0.87%, 0.35% | 0.0% | 0.0% | 0.1% | 23.6% (391.7M) | 0.0% (0B) | 49% | 1% | n/a |
37
- | data/0 | running | small | 10.158.26.49 | 0.02%, 0.02%, 0.07% | 0.0% | 0.0% | 0.2% | 7.1% (118.9M) | 0.0% (0B) | 49% | 1% | 4% |
38
- | dea/0 | running | small | 10.235.53.185 | 0.07%, 0.07%, 0.06% | 0.1% | 0.2% | 0.0% | 19.2% (319.8M) | 0.0% (0B) | 49% | 2% | n/a |
39
- | uaa/0 | running | small | 10.29.186.245 | 0.09%, 0.10%, 0.08% | 0.1% | 0.0% | 0.1% | 28.3% (469.7M) | 0.0% (0B) | 49% | 1% | n/a |
40
- +-----------+---------+---------------+-------------------------------+-----------------------+------+------+------+----------------+------------+------------+------------+------------+
30
+ $ bosh vms
31
+ +-----------+---------+---------------+-------------------------------+
32
+ | Job/index | State | Resource Pool | IPs |
33
+ +-----------+---------+---------------+-------------------------------+
34
+ | api/0 | running | small | 10.143.165.48, 54.227.237.123 |
35
+ | core/0 | running | small | 10.141.164.174 |
36
+ | data/0 | running | small | 10.139.11.105 |
37
+ | dea/0 | running | small | 10.139.14.146 |
38
+ +-----------+---------+---------------+-------------------------------+
39
+
41
40
  ```
42
41
 
43
42
  For a large deployment, all jobs (moving parts) of Cloud Foundry are isolated into their own VMs, and it includes a syslog aggregator:
@@ -52,7 +51,6 @@ $ bosh vms --vitals
52
51
  | cloud_controller/0 | running | small | 10.152.174.25 | 0.15%, 0.12%, 0.08% | 0.0% | 0.0% | 0.3% | 11.0% (183.2M) | 0.0% (0B) | 49% | 1% | n/a |
53
52
  | dea/0 | running | large | 10.144.83.102 | 0.80%, 0.36%, 0.15% | 0.0% | 0.0% | 0.0% | 5.3% (400.5M) | 0.0% (0B) | 49% | 1% | n/a |
54
53
  | health_manager/0 | running | small | 10.147.214.194 | 0.07%, 0.12%, 0.13% | 0.0% | 0.0% | 0.2% | 7.1% (118.4M) | 0.0% (0B) | 49% | 1% | n/a |
55
- | login/0 | running | small | 10.144.157.79 | 0.06%, 0.27%, 0.17% | 0.0% | 0.0% | 0.2% | 18.9% (313.8M) | 0.0% (0B) | 49% | 1% | n/a |
56
54
  | nats/0 | running | small | 10.152.188.72 | 0.04%, 0.14%, 0.13% | 0.0% | 0.0% | 0.0% | 5.9% (98.0M) | 0.0% (0B) | 49% | 1% | n/a |
57
55
  | nfs_server/0 | running | small | 10.164.22.218 | 0.03%, 0.09%, 0.09% | 0.0% | 0.0% | 15.5% | 5.2% (87.8M) | 0.0% (0B) | 49% | 1% | 1% |
58
56
  | postgres/0 | running | small | 10.154.152.54 | 0.25%, 0.17%, 0.12% | 0.0% | 0.1% | 0.1% | 6.7% (111.2M) | 0.0% (0B) | 49% | 1% | 1% |
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "bosh-cloudfoundry"
5
- spec.version = "0.7.0.alpha.10"
5
+ spec.version = "0.7.0.alpha.11"
6
6
  spec.authors = ["Dr Nic Williams"]
7
7
  spec.email = ["drnicwilliams@gmail.com"]
8
8
  spec.description = %q{Create & manage Cloud Foundry deployments}
@@ -14,7 +14,7 @@ networks:
14
14
  type: dynamic
15
15
  cloud_properties:
16
16
  security_groups:
17
- - cf
17
+ - default
18
18
 
19
19
  compilation:
20
20
  workers: 6
@@ -33,7 +33,7 @@ update:
33
33
  resource_pools:
34
34
  - name: small
35
35
  network: default
36
- size: 9
36
+ size: 8
37
37
  stemcell:
38
38
  name: bosh-stemcell
39
39
  version: latest
@@ -105,16 +105,6 @@ jobs:
105
105
  - name: default
106
106
  default: [dns, gateway]
107
107
 
108
- - name: login
109
- release: cf-release
110
- template:
111
- - login
112
- instances: 1
113
- resource_pool: small
114
- networks:
115
- - name: default
116
- default: [dns, gateway]
117
-
118
108
  - name: cloud_controller
119
109
  release: cf-release
120
110
  template:
@@ -164,8 +154,8 @@ properties:
164
154
  name: demo
165
155
  dns: mycloud.com
166
156
  ip_addresses: ["1.2.3.4"]
167
- deployment_size: medium
168
- security_group: cf
157
+ deployment_size: large
158
+ security_group: default
169
159
  persistent_disk: 4096
170
160
  common_password: qwertyasdfgh
171
161
 
@@ -202,24 +192,14 @@ properties:
202
192
 
203
193
  dea_next: *dea
204
194
 
205
- service_lifecycle:
206
- serialization_data_server:
207
- - 169.254.1.1
208
-
209
195
  syslog_aggregator:
210
196
  address: 0.syslog-aggregator.default.demo.microbosh
211
197
  port: 54321
212
198
 
213
- serialization_data_server:
214
- port: 8080
215
- logging_level: debug
216
- upload_token: qwertyasdfgh
217
- upload_timeout: 10
218
-
219
199
  nfs_server:
220
200
  address: 0.nfs-server.default.demo.microbosh
221
- # network: "*.demo.microbosh"
222
- # idmapd_domain: mycloud.com
201
+ network: "*.demo.microbosh"
202
+ idmapd_domain: mycloud.com
223
203
 
224
204
  debian_nfs_server:
225
205
  no_root_squash: true
@@ -298,11 +278,7 @@ properties:
298
278
  ccng: *cc
299
279
 
300
280
  login:
301
- protocol: http
302
- links:
303
- home: http://console.mycloud.com
304
- passwd: http://console.mycloud.com/password_resets/new
305
- signup: http://console.mycloud.com/register
281
+ enabled: false
306
282
 
307
283
  uaa:
308
284
  url: http://uaa.mycloud.com
@@ -344,34 +320,7 @@ properties:
344
320
  client:
345
321
  autoapprove:
346
322
  - cf
347
- - my
348
- - micro
349
- - support-signon
350
- - login
351
323
  clients:
352
- login:
353
- override: true
354
- scope: openid
355
- authorities: oauth.login
356
- secret: qwertyasdfgh
357
- authorized-grant-types: authorization_code,client_credentials,refresh_token
358
- redirect-uri: http://login.mycloud.com
359
- support-services:
360
- scope: scim.write,scim.read,openid,cloud_controller.read,cloud_controller.write
361
- secret: qwertyasdfgh
362
- authorized-grant-types: authorization_code,client_credentials
363
- redirect-uri: http://support-signon.mycloud.com
364
- authorities: portal.users.read
365
- access-token-validity: 1209600
366
- refresh-token-validity: 1209600
367
- oauth2service:
368
- secret: qwertyasdfgh
369
- scope: openid,cloud_controller.read,cloud_controller.write
370
- authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
371
- authorized-grant-types: client_credentials,implicit
372
- redirect-uri: http://rewritten-later.cloudfoundry.com/whatever
373
- override: true
374
- autoapprove: true
375
324
  cf:
376
325
  override: true
377
326
  authorized-grant-types: password,implicit,refresh_token
@@ -379,14 +328,6 @@ properties:
379
328
  scope: cloud_controller.read,cloud_controller.write,openid,password.write,cloud_controller.admin,scim.read,scim.write
380
329
  access-token-validity: 7200
381
330
  refresh-token-validity: 1209600
382
- servicesmgmt:
383
- override: true
384
- secret: qwertyasdfgh
385
- scope: openid,cloud_controller.read,cloud_controller.write
386
- authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
387
- authorized-grant-types: authorization_code,client_credentials,password,implicit
388
- redirect-uri: http://servicesmgmt.mycloud.com/auth/cloudfoundry/callback
389
- autoapprove: true
390
331
  scim:
391
332
  users:
392
333
  - admin|qwertyasdfgh|scim.write,scim.read,openid,cloud_controller.admin
@@ -33,7 +33,7 @@ compilation:
33
33
  resource_pools:
34
34
  - name: small
35
35
  network: default
36
- size: 5
36
+ size: 4
37
37
  stemcell:
38
38
  name: bosh-stemcell
39
39
  version: latest
@@ -69,11 +69,9 @@ jobs:
69
69
  - name: core
70
70
  release: cf-release
71
71
  template:
72
- - syslog_aggregator
73
72
  - nats
74
73
  - health_manager_next
75
- - collector
76
- - login
74
+ - uaa
77
75
  instances: 1
78
76
  resource_pool: small
79
77
  networks:
@@ -82,17 +80,6 @@ jobs:
82
80
  - dns
83
81
  - gateway
84
82
 
85
- # need a separate job for uaa due to https://github.com/cloudfoundry/cf-release/issues/104
86
- - name: uaa
87
- release: cf-release
88
- template:
89
- - uaa
90
- instances: 1
91
- resource_pool: small
92
- networks:
93
- - name: default
94
- default: [dns, gateway]
95
-
96
83
  - name: api
97
84
  release: cf-release
98
85
  template:
@@ -164,26 +151,6 @@ properties:
164
151
 
165
152
  dea_next: *dea
166
153
 
167
- service_lifecycle:
168
- serialization_data_server:
169
- - 0.core.default.demo.microbosh
170
-
171
- syslog_aggregator:
172
- address: 0.core.default.demo.microbosh
173
- port: 54321
174
-
175
- serialization_data_server:
176
- port: 8080
177
- logging_level: debug
178
- upload_token: qwertyasdfgh
179
- upload_timeout: 10
180
-
181
- collector:
182
- deployment_name: cf
183
- use_tsdb: false
184
- use_aws_cloudwatch: false
185
- use_datadog: false
186
-
187
154
  nfs_server:
188
155
  address: 0.data.default.demo.microbosh
189
156
  #network: "*.demo.microbosh"
@@ -266,11 +233,7 @@ properties:
266
233
  ccng: *cc
267
234
 
268
235
  login:
269
- protocol: http
270
- links:
271
- home: http://console.mycloud.com
272
- passwd: http://console.mycloud.com/password_resets/new
273
- signup: http://console.mycloud.com/register
236
+ enabled: false
274
237
 
275
238
  uaa:
276
239
  url: http://uaa.mycloud.com
@@ -312,34 +275,7 @@ properties:
312
275
  client:
313
276
  autoapprove:
314
277
  - cf
315
- - my
316
- - micro
317
- - support-signon
318
- - login
319
278
  clients:
320
- login:
321
- override: true
322
- scope: openid
323
- authorities: oauth.login
324
- secret: qwertyasdfgh
325
- authorized-grant-types: authorization_code,client_credentials,refresh_token
326
- redirect-uri: http://login.mycloud.com
327
- support-services:
328
- scope: scim.write,scim.read,openid,cloud_controller.read,cloud_controller.write
329
- secret: qwertyasdfgh
330
- authorized-grant-types: authorization_code,client_credentials
331
- redirect-uri: http://support-signon.mycloud.com
332
- authorities: portal.users.read
333
- access-token-validity: 1209600
334
- refresh-token-validity: 1209600
335
- oauth2service:
336
- secret: qwertyasdfgh
337
- scope: openid,cloud_controller.read,cloud_controller.write
338
- authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
339
- authorized-grant-types: client_credentials,implicit
340
- redirect-uri: http://rewritten-later.cloudfoundry.com/whatever
341
- override: true
342
- autoapprove: true
343
279
  cf:
344
280
  override: true
345
281
  authorized-grant-types: password,implicit,refresh_token
@@ -347,14 +283,6 @@ properties:
347
283
  scope: cloud_controller.read,cloud_controller.write,openid,password.write,cloud_controller.admin,scim.read,scim.write
348
284
  access-token-validity: 7200
349
285
  refresh-token-validity: 1209600
350
- servicesmgmt:
351
- override: true
352
- secret: qwertyasdfgh
353
- scope: openid,cloud_controller.read,cloud_controller.write
354
- authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
355
- authorized-grant-types: authorization_code,client_credentials,password,implicit
356
- redirect-uri: http://servicesmgmt.mycloud.com/auth/cloudfoundry/callback
357
- autoapprove: true
358
286
  scim:
359
287
  users:
360
288
  - admin|qwertyasdfgh|scim.write,scim.read,openid,cloud_controller.admin
@@ -39,43 +39,44 @@ describe Bosh::Cloudfoundry::DeploymentFile do
39
39
  # v132 & v133
40
40
  # medium & large
41
41
 
42
- context "generates deployment (aws)" do
43
- let(:bosh_cpi) { "aws" }
44
- let(:bosh_status) { {"cpi" => bosh_cpi, "uuid" => "UUID"} }
45
- let(:attributes) { {
46
- name: "demo",
47
- dns: "mycloud.com",
48
- ip_addresses: ['1.2.3.4'],
49
- common_password: "qwertyasdfgh",
50
- deployment_size: "medium"
51
- } }
52
- let(:release_version_cpi) { Bosh::Cloudfoundry::ReleaseVersionCpi.for_cpi(133, bosh_cpi) }
53
- let(:release_version_cpi_medium) { Bosh::Cloudfoundry::ReleaseVersionCpiSize.new(release_version_cpi, "medium") }
54
- let(:deployment_attributes) do
55
- Bosh::Cloudfoundry::DeploymentAttributes.new(mock("director"), bosh_status, release_version_cpi_medium, attributes)
56
- end
42
+ %w[medium large].each do |deployment_size|
43
+ context "generates deployment (aws)" do
44
+ let(:bosh_cpi) { "aws" }
45
+ let(:bosh_status) { {"cpi" => bosh_cpi, "uuid" => "UUID"} }
46
+ let(:attributes) { {
47
+ name: "demo",
48
+ dns: "mycloud.com",
49
+ ip_addresses: ['1.2.3.4'],
50
+ common_password: "qwertyasdfgh",
51
+ deployment_size: deployment_size
52
+ } }
53
+ let(:release_version_cpi) { Bosh::Cloudfoundry::ReleaseVersionCpi.for_cpi(133, bosh_cpi) }
54
+ let(:release_version_cpi_size) { Bosh::Cloudfoundry::ReleaseVersionCpiSize.new(release_version_cpi, deployment_size) }
55
+ let(:deployment_attributes) do
56
+ Bosh::Cloudfoundry::DeploymentAttributes.new(mock("director"), bosh_status, release_version_cpi_size, attributes)
57
+ end
57
58
 
58
- subject { Bosh::Cloudfoundry::DeploymentFile.new(release_version_cpi_medium, deployment_attributes, bosh_status) }
59
+ subject { Bosh::Cloudfoundry::DeploymentFile.new(release_version_cpi_size, deployment_attributes, bosh_status) }
59
60
 
60
- before do
61
- subject.biff.stub(:deployment).and_return(home_file("deployments/cf/demo.yml"))
62
- deployment_cmd = mock("deployment_cmd")
63
- deployment_cmd.stub(:set_current).with(home_file("deployments/cf/demo.yml"))
64
- deployment_cmd.stub(:perform)
65
- subject.stub(:deployment_cmd).and_return(deployment_cmd)
66
- end
61
+ before do
62
+ subject.biff.stub(:deployment).and_return(home_file("deployments/cf/demo.yml"))
63
+ deployment_cmd = mock("deployment_cmd")
64
+ deployment_cmd.stub(:set_current).with(home_file("deployments/cf/demo.yml"))
65
+ deployment_cmd.stub(:perform)
66
+ subject.stub(:deployment_cmd).and_return(deployment_cmd)
67
+ end
67
68
 
68
- it "medium size" do
69
- in_home_dir do
70
- subject.prepare_environment
69
+ it "#{deployment_size} size" do
70
+ in_home_dir do
71
+ subject.prepare_environment
71
72
 
72
- subject.create_deployment_file
73
- files_match(spec_asset("v133/aws/medium.yml"), subject.deployment_file)
73
+ subject.create_deployment_file
74
+ files_match(spec_asset("v133/aws/#{deployment_size}.yml"), subject.deployment_file)
74
75
 
75
- subject.deploy(non_interactive: true)
76
+ subject.deploy(non_interactive: true)
77
+ end
76
78
  end
77
79
  end
78
-
79
80
  # it "large size" do
80
81
  # in_home_dir do
81
82
  # command.add_option(:deployment_size, "large")
@@ -338,34 +338,7 @@ properties:
338
338
  client:
339
339
  autoapprove:
340
340
  - cf
341
- - my
342
- - micro
343
- - support-signon
344
- - login
345
341
  clients:
346
- login:
347
- override: true
348
- scope: openid
349
- authorities: oauth.login
350
- secret: <%= common_password %>
351
- authorized-grant-types: authorization_code,client_credentials,refresh_token
352
- redirect-uri: <%= protocol %>://login.<%= dns %>
353
- support-services:
354
- scope: scim.write,scim.read,openid,cloud_controller.read,cloud_controller.write
355
- secret: <%= common_password %>
356
- authorized-grant-types: authorization_code,client_credentials
357
- redirect-uri: <%= protocol %>://support-signon.<%= dns %>
358
- authorities: portal.users.read
359
- access-token-validity: 1209600
360
- refresh-token-validity: 1209600
361
- oauth2service:
362
- secret: <%= common_password %>
363
- scope: openid,cloud_controller.read,cloud_controller.write
364
- authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
365
- authorized-grant-types: client_credentials,implicit
366
- redirect-uri: <%= protocol %>://rewritten-later.cloudfoundry.com/whatever
367
- override: true
368
- autoapprove: true
369
342
  cf:
370
343
  override: true
371
344
  authorized-grant-types: password,implicit,refresh_token
@@ -373,14 +346,6 @@ properties:
373
346
  scope: cloud_controller.read,cloud_controller.write,openid,password.write,cloud_controller.admin,scim.read,scim.write
374
347
  access-token-validity: 7200
375
348
  refresh-token-validity: 1209600
376
- servicesmgmt:
377
- override: true
378
- secret: <%= common_password %>
379
- scope: openid,cloud_controller.read,cloud_controller.write
380
- authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
381
- authorized-grant-types: authorization_code,client_credentials,password,implicit
382
- redirect-uri: <%= protocol %>://servicesmgmt.mycloud.com/auth/cloudfoundry/callback
383
- autoapprove: true
384
349
  scim:
385
350
  users:
386
351
  - admin|<%= common_password %>|scim.write,scim.read,openid,cloud_controller.admin
@@ -68,7 +68,7 @@ update:
68
68
  resource_pools:
69
69
  - name: small
70
70
  network: default
71
- size: 9
71
+ size: 8
72
72
  stemcell:
73
73
  name: bosh-stemcell
74
74
  version: latest
@@ -140,16 +140,6 @@ jobs:
140
140
  - name: default
141
141
  default: [dns, gateway]
142
142
 
143
- - name: login
144
- release: cf-release
145
- template:
146
- - login
147
- instances: 1
148
- resource_pool: small
149
- networks:
150
- - name: default
151
- default: [dns, gateway]
152
-
153
143
  - name: cloud_controller
154
144
  release: cf-release
155
145
  template:
@@ -239,20 +229,10 @@ properties:
239
229
 
240
230
  dea_next: *dea
241
231
 
242
- service_lifecycle:
243
- serialization_data_server:
244
- - 169.254.1.1
245
-
246
232
  syslog_aggregator:
247
233
  address: 0.syslog-aggregator.default.<%= name %>.microbosh
248
234
  port: 54321
249
235
 
250
- serialization_data_server:
251
- port: 8080
252
- logging_level: debug
253
- upload_token: <%= common_password %>
254
- upload_timeout: 10
255
-
256
236
  nfs_server:
257
237
  address: 0.nfs-server.default.<%= name %>.microbosh
258
238
  network: "*.<%= name %>.microbosh"
@@ -335,11 +315,7 @@ properties:
335
315
  ccng: *cc
336
316
 
337
317
  login:
338
- protocol: <%= protocol %>
339
- links:
340
- home: <%= protocol %>://console.<%= dns %>
341
- passwd: <%= protocol %>://console.<%= dns %>/password_resets/new
342
- signup: <%= protocol %>://console.<%= dns %>/register
318
+ enabled: false
343
319
 
344
320
  uaa:
345
321
  url: <%= protocol %>://uaa.<%= dns %>
@@ -376,40 +352,12 @@ properties:
376
352
  admin:
377
353
  client_secret: <%= common_password %>
378
354
  batch:
379
- username: batch
355
+ username: batchuser
380
356
  password: <%= common_password %>
381
357
  client:
382
358
  autoapprove:
383
359
  - cf
384
- - my
385
- - portal
386
- - micro
387
- - support-signon
388
- - login
389
360
  clients:
390
- login:
391
- override: true
392
- scope: openid
393
- authorities: oauth.login
394
- secret: <%= common_password %>
395
- authorized-grant-types: authorization_code,client_credentials,refresh_token
396
- redirect-uri: <%= protocol %>://login.<%= dns %>
397
- support-services:
398
- scope: scim.write,scim.read,openid,cloud_controller.read,cloud_controller.write
399
- secret: <%= common_password %>
400
- authorized-grant-types: authorization_code,client_credentials
401
- redirect-uri: <%= protocol %>://support-signon.<%= dns %>
402
- authorities: portal.users.read
403
- access-token-validity: 1209600
404
- refresh-token-validity: 1209600
405
- oauth2service:
406
- secret: <%= common_password %>
407
- scope: openid,cloud_controller.read,cloud_controller.write
408
- authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
409
- authorized-grant-types: client_credentials,implicit
410
- redirect-uri: <%= protocol %>://rewritten-later.cloudfoundry.com/whatever
411
- override: true
412
- autoapprove: true
413
361
  cf:
414
362
  override: true
415
363
  authorized-grant-types: password,implicit,refresh_token
@@ -417,14 +365,6 @@ properties:
417
365
  scope: cloud_controller.read,cloud_controller.write,openid,password.write,cloud_controller.admin,scim.read,scim.write
418
366
  access-token-validity: 7200
419
367
  refresh-token-validity: 1209600
420
- servicesmgmt:
421
- override: true
422
- secret: <%= common_password %>
423
- scope: openid,cloud_controller.read,cloud_controller.write
424
- authorities: uaa.resource,oauth.service,clients.read,clients.write,clients.secret
425
- authorized-grant-types: authorization_code,client_credentials,password,implicit
426
- redirect-uri: <%= protocol %>://servicesmgmt.<%= dns %>/auth/cloudfoundry/callback
427
- autoapprove: true
428
368
  scim:
429
369
  users:
430
370
  - admin|<%= common_password %>|scim.write,scim.read,openid,cloud_controller.admin