forked from GoogleCloudPlatform/gcp-service-broker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtile.yml
454 lines (447 loc) · 17.6 KB
/
tile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
---
name: gcp-service-broker
icon_file: gcp_logo.png
label: Google Cloud Platform Service Broker
description: A service broker for Google Cloud Platform services
org: system
apply_open_security_group: true
migration: |
properties['properties']['.properties.org']['value'] = 'system';
if ('.properties.cloudsql_custom_plans' in properties['properties']){
properties['properties']['.properties.cloudsql_mysql_custom_plans'] =
{'value': properties['properties']['.properties.cloudsql_custom_plans']['value']};
}
packages:
- name: gcp-service-broker
type: app-broker
manifest:
buildpack: go_buildpack
path: /tmp/gcp-service-broker.zip
env:
SERVICES: '[
{
"id": "b9e4332e-b42b-4680-bda5-ea1506797474",
"description": "A Powerful, Simple and Cost Effective Object Storage Service",
"name": "google-storage",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google Cloud Storage",
"longDescription": "A Powerful, Simple and Cost Effective Object Storage Service",
"documentationUrl": "https://cloud.google.com/storage/docs/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/storage.svg"
},
"tags": ["gcp", "storage"]
},
{
"id": "628629e3-79f5-4255-b981-d14c6c7856be",
"description": "A global service for real-time and reliable messaging and streaming data",
"name": "google-pubsub",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google PubSub",
"longDescription": "A global service for real-time and reliable messaging and streaming data",
"documentationUrl": "https://cloud.google.com/pubsub/docs/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/pubsub.svg"
},
"tags": ["gcp", "pubsub"]
},
{
"id": "f80c0a3e-bd4d-4809-a900-b4e33a6450f1",
"description": "A fast, economical and fully managed data warehouse for large-scale data analytics",
"name": "google-bigquery",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google BigQuery",
"longDescription": "A fast, economical and fully managed data warehouse for large-scale data analytics",
"documentationUrl": "https://cloud.google.com/bigquery/docs/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/bigquery.svg"
},
"tags": ["gcp", "bigquery"]
},
{
"id": "4bc59b9a-8520-409f-85da-1c7552315863",
"description": "Google Cloud SQL is a fully-managed MySQL database service",
"name": "google-cloudsql-mysql",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google CloudSQL MySQL",
"longDescription": "Google Cloud SQL is a fully-managed MySQL database service",
"documentationUrl": "https://cloud.google.com/sql/docs/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/sql.svg"
},
"tags": ["gcp", "cloudsql", "mysql"]
},
{
"id": "cbad6d78-a73c-432d-b8ff-b219a17a803a",
"description": "Google Cloud SQL is a fully-managed PostgreSQL database service",
"name": "google-cloudsql-postgres",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google CloudSQL PostgreSQL",
"longDescription": "Google Cloud SQL is a fully-managed MySQL database service",
"documentationUrl": "https://cloud.google.com/sql/docs/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/sql.svg"
},
"tags": ["gcp", "cloudsql", "postgres"]
},
{
"id": "5ad2dce0-51f7-4ede-8b46-293d6df1e8d4",
"description": "Machine Learning Apis including Vision, Translate, Speech, and Natural Language",
"name": "google-ml-apis",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google Machine Learning APIs",
"longDescription": "Machine Learning Apis including Vision, Translate, Speech, and Natural Language",
"documentationUrl": "https://cloud.google.com/ml/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/machine-learning.svg"
},
"tags": ["gcp", "ml"]
},
{
"id": "b8e19880-ac58-42ef-b033-f7cd9c94d1fe",
"description": "A high performance NoSQL database service for large analytical and operational workloads",
"name": "google-bigtable",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google Bigtable",
"longDescription": "A high performance NoSQL database service for large analytical and operational workloads",
"documentationUrl": "https://cloud.google.com/bigtable/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/bigtable.svg"
},
"tags": ["gcp", "bigtable"]
},
{
"id": "51b3e27e-d323-49ce-8c5f-1211e6409e82",
"description": "The first horizontally scalable, globally consistent, relational database service",
"name": "google-spanner",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google Spanner",
"longDescription": "The first horizontally scalable, globally consistent, relational database service",
"documentationUrl": "https://cloud.google.com/spanner/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/spanner.svg"
},
"tags": ["gcp", "spanner"]
},
{
"id": "83837945-1547-41e0-b661-ea31d76eed11",
"description": "Stackdriver Debugger",
"name": "google-stackdriver-debugger",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Stackdriver Debugger",
"longDescription": "Stackdriver Debugger is a feature of the Google Cloud Platform that lets you inspect the state of an application at any code location without using logging statements and without stopping or slowing down your applications. Your users are not impacted during debugging. Using the production debugger you can capture the local variables and call stack and link it back to a specific line location in your source code.",
"documentationUrl": "https://cloud.google.com/debugger/docs/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/debugger.svg"
},
"tags": ["gcp", "stackdriver", "debugger"]
},
{
"id": "c5ddfe15-24d9-47f8-8ffe-f6b7daa9cf4a",
"description": "Stackdriver Trace",
"name": "google-stackdriver-trace",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Stackdriver Trace",
"longDescription": "Stackdriver Trace is a distributed tracing system that collects latency data from your applications and displays it in the Google Cloud Platform Console. You can track how requests propagate through your application and receive detailed near real-time performance insights.",
"documentationUrl": "https://cloud.google.com/trace/docs/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/trace.svg"
},
"tags": ["gcp", "stackdriver", "trace"]
},
{
"id": "76d4abb2-fee7-4c8f-aee1-bcea2837f02b",
"description": "Google Cloud Datastore is a NoSQL document database service",
"name": "google-datastore",
"bindable": true,
"plan_updateable": false,
"metadata": {
"displayName": "Google Cloud Datastore",
"longDescription": "Google Cloud Datastore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.",
"documentationUrl": "https://cloud.google.com/datastore/docs/",
"supportUrl": "https://cloud.google.com/support/",
"imageUrl": "https://cloud.google.com/_static/images/cloud/products/logos/svg/datastore.svg"
},
"tags": ["gcp", "datastore"]
}
]'
PRECONFIGURED_PLANS: '[
{
"service_id": "b9e4332e-b42b-4680-bda5-ea1506797474",
"name": "standard",
"display_name": "Standard",
"description": "Standard storage class",
"features": {"storage_class": "STANDARD"}
},
{
"service_id": "b9e4332e-b42b-4680-bda5-ea1506797474",
"name": "nearline",
"display_name": "Nearline",
"description": "Nearline storage class",
"features": {"storage_class": "NEARLINE"}
},
{
"service_id": "b9e4332e-b42b-4680-bda5-ea1506797474",
"name": "reduced_availability",
"display_name": "Durable Reduced Availability",
"description": "Durable Reduced Availability storage class",
"features": {"storage_class": "DURABLE_REDUCED_AVAILABILITY"}
},
{
"service_id": "628629e3-79f5-4255-b981-d14c6c7856be",
"name": "default",
"display_name": "Default",
"description": "PubSub Default plan",
"features": ""
},
{ "service_id": "f80c0a3e-bd4d-4809-a900-b4e33a6450f1",
"name": "default",
"display_name": "Default",
"description": "BigQuery default plan",
"features": ""
},
{
"service_id": "5ad2dce0-51f7-4ede-8b46-293d6df1e8d4",
"name": "default",
"display_name": "Default",
"description": "Machine Learning api default plan",
"features": ""
},
{
"service_id": "83837945-1547-41e0-b661-ea31d76eed11",
"name": "default",
"display_name": "Default",
"description": "Stackdriver Debugger default plan",
"features": ""
},
{
"service_id": "c5ddfe15-24d9-47f8-8ffe-f6b7daa9cf4a",
"name": "default",
"display_name": "Default",
"description": "Stackdriver Trace default plan",
"features": ""
},
{
"service_id": "76d4abb2-fee7-4c8f-aee1-bcea2837f02b",
"name": "default",
"display_name": "Default",
"description": "Datastore default plan",
"features": ""
}
]'
needs_cf_credentials: true
enable_global_access_to_plans: true
# Uncomment this section if you want to display forms with configurable
# properties in Ops Manager. These properties will be passed to your
# applications as environment variables. You can also refer to them
# elsewhere in this template by using:
# (( .properties.<property-name> ))
#
forms:
- name: root_service_account
label: Root Service Account
description: Please paste in the contents of the json keyfile (un-encoded) for your service account with owner credentials
properties:
- name: root_service_account_json
label: Root Service Account JSON
type: text
- name: database_properties
label: Database Properties
description: Connection details for the backing database for the service broker
properties:
- name: db_host
type: string
label: Database host
- name: db_username
type: string
label: Database username
optional: true
- name: db_password
type: secret
label: Database password
optional: true
- name: db_port
type: string
default: '3306'
label: Database port (defaults to 3306)
- name: ca_cert
type: text
label: Server CA cert
optional: true
- name: client_cert
type: text
label: Client cert
optional: true
- name: client_key
type: text
label: Client key
optional: true
service_plan_forms:
- name: cloudsql_mysql_custom_plans
description: Generate custom plans for CloudSQL MySQL (required to enable the service for developers)
label: CloudSQL MySQL Custom Plans
optional: true
properties:
- name: display_name
label: Display Name
type: string
description: "Display name"
configurable: true
- name: description
label: Plan description
type: string
description: "Plan description"
configurable: true
- name: service
label: Service
type: dropdown_select
description: "The service this plan is associated with"
options:
- name: '4bc59b9a-8520-409f-85da-1c7552315863'
label: 'CloudSQL - MySQL'
- name: tier
label: Tier/Machine Type
type: string
description: "Case-sensitive tier/machine type name (see https://cloud.google.com/sql/pricing for more information)"
configurable: true
- name: pricing_plan
label: Pricing Plan
type: dropdown_select
configurable: true
default: PER_USE
description: "Select a pricing plan (only for 1st generation instances)"
options:
- name: PER_USE
label: 'Per-Use'
- name: PACKAGE
label: "Package"
- name: max_disk_size
label: Max Disk Size
type: string
default: '10'
description: "Maximum disk size in GB (applicable only to Second Generation instances, 10 minimum/default)"
configurable: true
- name: cloudsql_postgres_custom_plans
description: Generate custom plans for CloudSQL PostgreSQL (required to enable the service for developers)
label: CloudSQL PostgreSQL Custom Plans
optional: true
properties:
- name: display_name
label: Display Name
type: string
description: "Display name"
configurable: true
- name: description
label: Plan description
type: string
description: "Plan description"
configurable: true
- name: service
label: Service
type: dropdown_select
configurable: false
description: "The service this plan is associated with"
options:
- name: 'cbad6d78-a73c-432d-b8ff-b219a17a803a'
label: 'CloudSQL - PostgreSQL'
- name: tier
label: Tier/Machine Type
type: string
description: "a string of the form db-custom-[CPUS]-[MEMORY_MBS], where memory is at least 3840"
configurable: true
- name: pricing_plan
label: Pricing Plan
type: dropdown_select
configurable: false
description: "the pricing plan"
options:
- name: PER_USE
label: 'Per-Use'
- name: max_disk_size
label: Max Disk Size
type: string
default: '10'
description: "Maximum disk size in GB (10 minimum/default)"
configurable: true
- name: bigtable_custom_plans
description: Generate custom plans for Bigtable (required to enable the service for developers)
label: Bigtable Custom Plans
optional: true
properties:
- name: display_name
label: Display Name
type: string
description: "Display name"
configurable: true
- name: description
label: Plan description
type: string
description: "Plan description"
configurable: true
- name: service
label: Service
type: dropdown_select
description: "The service this plan is associated with"
options:
- name: 'b8e19880-ac58-42ef-b033-f7cd9c94d1fe'
label: 'Bigtable'
- name: storage_type
label: Storage Type
type: string
description: "Either HDD or SSD (see https://cloud.google.com/bigtable/pricing for more information)"
configurable: true
default: 'SSD'
- name: num_nodes
label: Number of Nodes
type: string
description: "Between 3 and 30 (see https://cloud.google.com/bigtable/pricing for more information)"
configurable: true
default: '3'
- name: spanner_custom_plans
description: Generate custom plans for Spanner (required to enable the service for developers)
label: Spanner Custom Plans
optional: true
properties:
- name: display_name
label: Display Name
type: string
description: "Display name"
configurable: true
- name: description
label: Plan description
type: string
description: "Plan description"
configurable: true
- name: service
label: Service
type: dropdown_select
description: "The service this plan is associated with"
options:
- name: '51b3e27e-d323-49ce-8c5f-1211e6409e82'
label: 'Spanner'
- name: num_nodes
label: Number of Nodes
type: string
description: "A minimum of 3 nodes is recommended for production environments. (see https://cloud.google.com/spanner/pricing for more information)"
configurable: true
default: '1'