-
Notifications
You must be signed in to change notification settings - Fork 3
/
example-manifest.yml
179 lines (167 loc) · 5.74 KB
/
example-manifest.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
---
name: redis-on-demand-broker
director_uuid: <DIRECTOR_UUID>
releases:
- name: &broker-release on-demand-service-broker
version: latest
- name: &service-adapter-release redis-example-service-adapter
version: latest
stemcells:
- alias: trusty
os: ubuntu-trusty
version: <STEMCELL_VERSION>
instance_groups:
- name: broker
instances: 1
jobs:
- name: broker
release: *broker-release
properties:
port: &broker_port 8080
username: <BROKER_BASIC_AUTH_USERNAME>
password: <BROKER BASIC AUTH PASSWORD>
disable_ssl_cert_verification: <true | false> # optional
cf:
url: <CF_API_URL>
root_ca_cert: <root ca cert for CF> # optional
authentication:
url: <CF_UAA_URL>
user_credentials: # can use client_credentials instead
username: <CF_ADMIN_USER>
password: <CF_ADMIN_PASSWORD>
bosh:
url: <BOSH_URL>
authentication:
basic: # can use uaa instead
username: <BOSH_DIRECTOR_BASIC_AUTH_USERNAME>
password: <BOSH_DIRECTOR_BASIC_AUTH_USERNAME>
service_adapter:
path: /var/vcap/packages/service-adapter/bin/service-adapter
service_deployment:
releases:
- name: redis-service
version: <REDIS_SERVICE_VERSION>
jobs:
- redis-server
- health-check # optional post-deploy lifecycle errand
- cleanup-data # optional pre-delete lifecycle errand
stemcell:
os: ubuntu-trusty
version: <STEMCELL_VERSION>
service_catalog:
id: B07E8B68-601C-440A-8F15-E263D29998AA
service_name: redis-on-demand
service_description: Redis Dedicated Instance
bindable: true
plan_updatable: true
metadata:
display_name: Redis
tags:
- redis
- pivotal
plans:
- name: dedicated-vm
plan_id: 69E93C94-1DE0-445D-A80E-888B7505E1C1
description: Redis Dedicated Instance
metadata:
display_name: Redis Dedicated Instance
bullets: []
quotas: # optional
service_instance_limit: 10
properties:
persistence: <TRUE | FALSE> # attach a persistent disk below if true
lifecycle_errands:
post_deploy: health-check # optional post-deploy lifecycle errand
pre_delete: cleanup-data # optional pre-delete lifecycle errand
instance_groups:
- name: redis-server
vm_type: <FROM_CLOUD_CONFIG>
persistent_disk: <FROM_CLOUD_CONFIG> # only if persistence is true in plan properties
instances: 1
networks: [<FROM_CLOUD_CONFIG>]
azs: [<FROM_CLOUD_CONFIG>]
- name: health-check # optional post-deploy lifecycle errand
lifecycle: errand
vm_type: <FROM_CLOUD_CONFIG>
instances: 1
networks: [<FROM_CLOUD_CONFIG>]
azs: [<FROM_CLOUD_CONFIG>]
- name: cleanup-data # optional pre-delete lifecycle errand
lifecycle: errand
vm_type: <FROM_CLOUD_CONFIG>
instances: 1
networks: [<FROM_CLOUD_CONFIG>]
azs: [<FROM_CLOUD_CONFIG>]
- name: service-adapter
release: *service-adapter-release
vm_type: <FROM_CLOUD_CONFIG>
stemcell: trusty
networks: [{name: <FROM_CLOUD_CONFIG>}]
azs: [<FROM_CLOUD_CONFIG>]
- name: register-broker
lifecycle: errand
instances: 1
jobs:
- name: register-broker
release: *broker-release
properties:
broker_name: &broker_name redis-on-demand
disable_ssl_cert_verification: <true | false>
cf: &cf
api_url: <CF_API_URL>
admin_username: <CF_ADMIN_USERNAME>
admin_password: <CF_ADMIN_PASSWORD>
vm_type: <FROM_CLOUD_CONFIG>
stemcell: trusty
networks: [{name: <FROM_CLOUD_CONFIG>}]
azs: [<FROM_CLOUD_CONFIG>]
- name: deregister-broker
lifecycle: errand
instances: 1
jobs:
- name: deregister-broker
release: *broker-release
properties:
broker_name: *broker_name
disable_ssl_cert_verification: *disable_ssl_cert_verification
cf:
<<: *cf
vm_type: <FROM_CLOUD_CONFIG>
stemcell: trusty
networks: [{name: <FROM_CLOUD_CONFIG>}]
azs: [<FROM_CLOUD_CONFIG>]
- name: delete-all-service-instances
lifecycle: errand
instances: 1
jobs:
- name: delete-all-service-instances
release: *broker-release
vm_type: <FROM_CLOUD_CONFIG>
stemcell: trusty
networks: [{name: <FROM_CLOUD_CONFIG>}]
azs: [<FROM_CLOUD_CONFIG>]
- name: upgrade-all-service-instances
lifecycle: errand
instances: 1
jobs:
- name: upgrade-all-service-instances
release: *broker-release
vm_type: <FROM_CLOUD_CONFIG>
stemcell: trusty
networks: [{name: <FROM_CLOUD_CONFIG>}]
azs: [<FROM_CLOUD_CONFIG>]
- name: orphan-deployments
lifecycle: errand
instances: 1
jobs:
- name: orphan-deployments
release: *broker-release
vm_type: <FROM_CLOUD_CONFIG>
stemcell: trusty
networks: [{name: <FROM_CLOUD_CONFIG>}]
azs: [<FROM_CLOUD_CONFIG>]
update:
canaries: 1
canary_watch_time: 3000-180000
update_watch_time: 3000-180000
max_in_flight: 4