Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 267 lines (236 sloc) 8.04 kb
e121304 @olegshaldybin Initial commit
olegshaldybin authored
1 ---
3a1abef @olegshaldybin Migrate ccdb_postgres -> new postgres template
olegshaldybin authored
2 <% db = properties.ccdb.databases.find { |db| db.tag == "cc" } %>
3 <% db_role = properties.ccdb.roles.find { |role| role.tag == "admin" } %>
4
e121304 @olegshaldybin Initial commit
olegshaldybin authored
5 external_uri: api.<%= properties.domain %>
6 description: <%= properties.description || "VMware's Cloud Application Platform" %>
7 support_address: <%= properties.support_address || "http://support.cloudfoundry.com" %>
8 local_route: <%= spec.networks.send(properties.networks.apps).ip %>
9 <% if properties.cc.allow_registration || properties.cc.allow_registration == nil %>
10 allow_registration: true
11 <% else %>
12 allow_registration: false
13 <% end %>
14 external_port: 9022 #public CC port
15
16 <% if properties.cc.max_droplet_size %>
17 max_droplet_size: <%= properties.cc.max_droplet_size %>
18 <% end %>
19
9357538 @bnugmanov [hm2][hm_shadow] Add health_manager_next (hm2), hm_shadow
bnugmanov authored
20 bulk_api:
21 auth:
22 user: bulk_api
23 password: <%= properties.cc.password %>
24
e121304 @olegshaldybin Initial commit
olegshaldybin authored
25 nginx:
26 use_nginx: <%= properties.cc.use_nginx %> #nginx proxy in front of CC?
27 instance_socket: /var/vcap/sys/run/cloud_controller/cloud_controller.sock
28 #insecure_instance_port: 9025 #NOT SECURE -- DEBUG ONLY!!!!
29
30 index: <%= spec.index %>
31 index_page: <%= properties.cc.index_page %>
32 info_file: /var/vcap/packages/cloud_controller/config/cloud_controller-info.json
33
34 # Legacy (FIXME REMOVE)
35 # Can't be removed yet since CC checks to make sure it's present
36 allow_external_app_uris: false
37
38 app_uris:
39 allow_external: false
40 reserved_file: /var/vcap/jobs/cloud_controller/config/blacklist.txt
41 reserved_length: 3
42
43 directories:
44 droplets: /var/vcap/shared/droplets
45 resources: /var/vcap/shared/resources
46 staging_manifests: /var/vcap/jobs/cloud_controller/config/staging
47 staging_cache: /var/vcap/data/cloud_controller/staging
48 tmpdir: /var/vcap/data/cloud_controller/tmp
49
50 logging:
51 file: /var/vcap/sys/log/cloud_controller/cloud_controller.log
52 <% if properties.syslog_aggregator %>
53 syslog: vcap.cloud_controller
54 <% end %>
55 level: debug
56
57 rails_logging:
58 file: /var/vcap/sys/log/cloud_controller/rails.log
59 level: debug
60
61 event_logging:
62 file: /var/vcap/sys/log/cloud_controller/events.log
63
64 keys:
65 password: <%= properties.cc.password %>
66 token: <%= properties.cc.token %>
67
68 pid: /var/vcap/sys/run/cloud_controller/cloud_controller.pid
69
70 mbus: nats://<%= properties.nats.user %>:<%= properties.nats.password %>@<%= properties.nats.address %>:<%= properties.nats.port %>
71
72 rails_environment: production
73
74 <% if properties.cc.new_initial_placement && spec.index.to_i == 0 %>
75 new_initial_placement: true
76 <% else %>
77 new_initial_placement: false
78 <% end %>
79
80 database_environment:
81 production:
3a1abef @olegshaldybin Migrate ccdb_postgres -> new postgres template
olegshaldybin authored
82 database: <%= db.name %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
83 host: <%= properties.ccdb.address %>
84 port: <%= properties.ccdb.port %>
85 encoding: utf8
3a1abef @olegshaldybin Migrate ccdb_postgres -> new postgres template
olegshaldybin authored
86 username: <%= db_role.name %>
87 password: <%= db_role.password %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
88 pool: <%= properties.ccdb.pool_size %>
89 timeout: 2000
90 template: template0 # Required for utf8 encoding
91 adapter: postgresql
92
93 <% if properties.cc.uaa && properties.uaa.cc %>
94 uaa:
95 enabled: <%= properties.cc.uaa.enabled %>
96 url: http://uaa.<%= properties.domain %>
97 resource_id: <%= properties.cc.uaa.resource_id %>
98 token_secret: <%= properties.uaa.cc.token_secret %>
5053f4e @joeldsa UAA Phase4 changes to release
joeldsa authored
99 client_secret: <%= properties.uaa.cc.client_secret %>
100 token_creation_email_filter: <%= properties.cc.uaa.token_creation_email_filter %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
101 <% else %>
102 uaa:
103 enabled: false
104 url: http://uaa.<%= properties.domain %>
105 resource_id: cloud_controller
106 token_secret:
107 client_secret:
5053f4e @joeldsa UAA Phase4 changes to release
joeldsa authored
108 token_creation_email_filter:
e121304 @olegshaldybin Initial commit
olegshaldybin authored
109 <% end %>
110
111
112 <% if properties.vcap_redis %>
113 redis:
114 host: <%= properties.vcap_redis.address %>
115 port: <%= properties.vcap_redis.port %>
116 password: <%= properties.vcap_redis.password %>
117 <% end %>
118
119 staging:
120 max_concurrent_stagers: <%= properties.cc.max_concurrent_stagers || 20 %>
121 max_staging_runtime: <%= properties.cc.max_staging_runtime || 120 %>
122 secure: true
123 <% if properties.cc.new_stager_percent %>
124 new_stager_percent: <%= properties.cc.new_stager_percent %>
125 <% end %>
126 <% if properties.cc.new_stager_email_regexp %>
127 new_stager_email_regexp: <%= properties.cc.new_stager_email_regexp %>
128 <% end %>
129 auth:
130 user: <%= properties.cc.staging_upload_user %>
131 password: <%= properties.cc.staging_upload_password %>
132
133 allow_debug: <%= properties.cc.allow_debug || false %>
134
135 admins: [ "<%= properties.cc.admins.join('", "') %>" ]
136
137 https_required: <%= properties.cc.https_required || false %>
138 https_required_for_admins: <%= properties.cc.https_required_for_admins || false %>
139
140 <% if properties.cc.admin_account_capacity %>
141 admin_account_capacity:
142 memory: <%= properties.cc.admin_account_capacity.memory || 32 * 1024 %>
143 app_uris: <%= properties.cc.admin_account_capacity.app_uris || 16 %>
144 services: <%= properties.cc.admin_account_capacity.services || 32 %>
145 apps: <%= properties.cc.admin_account_capacity.apps || 200 %>
146 <% end %>
147
148 # Normal users limited to 512M, 4 Services, and 4 URIs per App
149 default_account_capacity:
150 <% unless properties.cc.default_account_capacity %>
151 memory: 2048
152 app_uris: 4
153 services: 16
154 apps: 20
155 <% else %>
156 memory: <%= properties.cc.default_account_capacity.memory || 2048 %>
157 app_uris: <%= properties.cc.default_account_capacity.app_uris || 4 %>
158 services: <%= properties.cc.default_account_capacity.services || 16 %>
159 apps: <%= properties.cc.default_account_capacity.apps || 16 %>
160 <% end %>
161
162 builtin_services:
163 <% if properties.mysql_gateway %>
164 mysql:
165 token: <%= properties.mysql_gateway.token %>
166 <% end %>
167 <% if properties.redis_gateway %>
168 redis:
169 token: <%= properties.redis_gateway.token %>
170 <% end %>
171 <% if properties.mongodb_gateway %>
172 mongodb:
173 token: <%= properties.mongodb_gateway.token %>
174 <% end %>
e9625d3 Initial Commit - memcached bosh packaging
Harshawardhan Gadgil authored
175 <% if properties.memcached_gateway %>
176 memcached:
177 token: <%= properties.memcached_gateway.token %>
178 <% end %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
179 <% if properties.rabbit_gateway %>
180 rabbitmq:
181 token: <%= properties.rabbit_gateway.token %>
182 <% end %>
183 <% if properties.postgresql_gateway %>
184 postgresql:
185 token: <%= properties.postgresql_gateway.token %>
186 <% end %>
187 <% if properties.atmos_gateway %>
188 atmos:
189 token: <%= properties.atmos_gateway.token %>
190 <% end %>
191 <% if properties.filesystem_gateway %>
192 filesystem:
193 token: <%= properties.filesystem_gateway.token %>
194 <% end %>
195 <% if properties.vblob_gateway %>
c666a24 rename 'vblob-1.0' to 'blob 0.51'
figof authored
196 blob:
e121304 @olegshaldybin Initial commit
olegshaldybin authored
197 token: <%= properties.vblob_gateway.token %>
198 <% end %>
199 <% if properties.external_service_tokens %>
200 <% properties.external_service_tokens.each do |name,token| %>
201 <%= name %>:
202 token: <%= token %>
203 <% end %>
204 <% end %>
205
206 <% if properties.service_broker %>
207 service_broker:
208 token: <%= properties.service_broker.token %>
209 <% end %>
210
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
211 <%
212 if properties.cc.service_extension && properties.cc.service_extension.service_lifecycle
213 max_upload_size = properties.cc.service_extension.service_lifecycle.max_upload_size || 1
214 if properties.service_lifecycle
215 if properties.service_lifecycle.serialization_max_download_size
216 max_download_size = properties.service_lifecycle.serialization_max_download_size
217 if max_upload_size.to_i > max_download_size.to_i
218 max_upload_size = max_download_size.to_i
219 end
220 end
221 sds = properties.service_lifecycle.serialization_data_server
222 end
223 if properties.serialization_data_server
224 sds_port = properties.serialization_data_server.port
225 upload_token = properties.serialization_data_server.upload_token
226 upload_timeout = properties.serialization_data_server.upload_timeout
227 end
228 sds_port ||= 8080
229 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
230 service_lifecycle:
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
231 max_upload_size: <%= max_upload_size %>
232 upload_token: <%= upload_token %>
233 <% if upload_timeout %>
234 upload_timeout: <%=upload_timeout%>
235 <% end %>
236 <% if sds %>
237 serialization_data_server:
238 <% sds.each do |server| %>
239 - <%=server%>:<%=sds_port%>
240 <% end %>
241 <% end %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
242 <% end %>
243
244 runtimes:
245 ruby18:
246 version: 1.8.7
247 ruby19:
248 version: 1.9.2
249 node:
250 version: 0.4.12
251 node06:
252 version: 0.6.8
68f9cf8 @mariash Add node08 runtime with Node.js 0.8.2
mariash authored
253 node08:
254 version: 0.8.2
e121304 @olegshaldybin Initial commit
olegshaldybin authored
255 java:
256 version: 1.6.0
257 debug_modes:
258 - run
259 - suspend
d0ea5a0 Adding Java 7 support
Thomas Risberg authored
260 java7:
261 version: 1.7.0
262 debug_modes:
263 - run
264 - suspend
e121304 @olegshaldybin Initial commit
olegshaldybin authored
265 erlangR14B02:
266 version: ".* 5.8.3"
Something went wrong with that request. Please try again.