Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 233 lines (197 sloc) 7.521 kb
e121304 @olegshaldybin Initial commit
olegshaldybin authored
1 ---
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
2 <% cc_props_name = properties.cc_props || 'cc' %>
3 <% cc_props = properties.send(cc_props_name) %>
3a1abef @olegshaldybin Migrate ccdb_postgres -> new postgres template
olegshaldybin authored
4
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
5 <% ccdb_prop_name = properties.db || 'ccdb' %>
6 <% ccdb = properties.send(ccdb_prop_name) %>
7 <% db_name = ccdb.databases.find { |db| db.tag == "cc" }.name %>
8 <% db_role = ccdb.roles.find { |role| role.tag == "admin" } %>
9
10 external_uri: <%= cc_props.external_uri || "api." + properties.domain %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
11 description: <%= properties.description || "VMware's Cloud Application Platform" %>
12 support_address: <%= properties.support_address || "http://support.cloudfoundry.com" %>
13 local_route: <%= spec.networks.send(properties.networks.apps).ip %>
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
14 <% if cc_props.allow_registration || cc_props.allow_registration == nil %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
15 allow_registration: true
16 <% else %>
17 allow_registration: false
18 <% end %>
19 external_port: 9022 #public CC port
20
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
21 <% if cc_props.max_droplet_size %>
22 max_droplet_size: <%= cc_props.max_droplet_size %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
23 <% end %>
24
9357538 @bnugmanov [hm2][hm_shadow] Add health_manager_next (hm2), hm_shadow
bnugmanov authored
25 bulk_api:
26 auth:
27 user: bulk_api
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
28 password: <%= cc_props.password %>
9357538 @bnugmanov [hm2][hm_shadow] Add health_manager_next (hm2), hm_shadow
bnugmanov authored
29
e121304 @olegshaldybin Initial commit
olegshaldybin authored
30 nginx:
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
31 use_nginx: <%= cc_props.use_nginx %> #nginx proxy in front of CC?
e121304 @olegshaldybin Initial commit
olegshaldybin authored
32 instance_socket: /var/vcap/sys/run/cloud_controller/cloud_controller.sock
33 #insecure_instance_port: 9025 #NOT SECURE -- DEBUG ONLY!!!!
34
35 index: <%= spec.index %>
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
36 index_page: <%= cc_props.index_page %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
37 info_file: /var/vcap/packages/cloud_controller/config/cloud_controller-info.json
38
39 # Legacy (FIXME REMOVE)
40 # Can't be removed yet since CC checks to make sure it's present
41 allow_external_app_uris: false
42
43 app_uris:
44 allow_external: false
45 reserved_file: /var/vcap/jobs/cloud_controller/config/blacklist.txt
46 reserved_length: 3
47
48 directories:
49 droplets: /var/vcap/shared/droplets
50 resources: /var/vcap/shared/resources
51 staging_manifests: /var/vcap/jobs/cloud_controller/config/staging
52 tmpdir: /var/vcap/data/cloud_controller/tmp
53
54 logging:
55 file: /var/vcap/sys/log/cloud_controller/cloud_controller.log
56 <% if properties.syslog_aggregator %>
57 syslog: vcap.cloud_controller
58 <% end %>
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
59 level: <%= cc_props.logging_level || "info" %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
60
61 rails_logging:
62 file: /var/vcap/sys/log/cloud_controller/rails.log
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
63 level: <%= cc_props.rails_logging_level || "info" %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
64
65 event_logging:
66 file: /var/vcap/sys/log/cloud_controller/events.log
67
68 keys:
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
69 password: <%= cc_props.password %>
70 token: <%= cc_props.token %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
71
72 pid: /var/vcap/sys/run/cloud_controller/cloud_controller.pid
73
74 mbus: nats://<%= properties.nats.user %>:<%= properties.nats.password %>@<%= properties.nats.address %>:<%= properties.nats.port %>
75
76 rails_environment: production
77
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
78 <% if cc_props.new_initial_placement && spec.index.to_i == 0 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
79 new_initial_placement: true
80 <% else %>
81 new_initial_placement: false
82 <% end %>
83
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
84 cc_partition: <%= cc_props.cc_partition || "default" %>
85
e121304 @olegshaldybin Initial commit
olegshaldybin authored
86 database_environment:
87 production:
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
88 database: <%= db_name %>
89 host: <%= ccdb.address %>
90 port: <%= ccdb.port %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
91 encoding: utf8
3a1abef @olegshaldybin Migrate ccdb_postgres -> new postgres template
olegshaldybin authored
92 username: <%= db_role.name %>
93 password: <%= db_role.password %>
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
94 pool: <%= ccdb.pool_size %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
95 timeout: 2000
96 template: template0 # Required for utf8 encoding
97 adapter: postgresql
98
e71731d @dsyer Allow login url to be specified in cc
dsyer authored
99 <% scheme = properties.uaa.no_ssl ? "http" : "https" %>
c591ef1 @takeshi UAA Endpoint http mode
takeshi authored
100
e71731d @dsyer Allow login url to be specified in cc
dsyer authored
101 login:
102 url: <%= scheme %>://login.<%= properties.domain %>
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
103 <% if cc_props.uaa && properties.uaa.cc %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
104 uaa:
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
105 enabled: <%= cc_props.uaa.enabled %>
e71731d @dsyer Allow login url to be specified in cc
dsyer authored
106 url: <%= scheme %>://uaa.<%= properties.domain %>
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
107 resource_id: <%= cc_props.uaa.resource_id %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
108 token_secret: <%= properties.uaa.cc.token_secret %>
5053f4e @joeldsa UAA Phase4 changes to release
joeldsa authored
109 client_secret: <%= properties.uaa.cc.client_secret %>
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
110 token_creation_email_filter: <%= cc_props.uaa.token_creation_email_filter %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
111 <% else %>
112 uaa:
113 enabled: false
e71731d @dsyer Allow login url to be specified in cc
dsyer authored
114 url: <%= scheme %>://uaa.<%= properties.domain %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
115 resource_id: cloud_controller
116 token_secret:
117 client_secret:
5053f4e @joeldsa UAA Phase4 changes to release
joeldsa authored
118 token_creation_email_filter:
e121304 @olegshaldybin Initial commit
olegshaldybin authored
119 <% end %>
120
121
122 <% if properties.vcap_redis %>
123 redis:
124 host: <%= properties.vcap_redis.address %>
125 port: <%= properties.vcap_redis.port %>
126 password: <%= properties.vcap_redis.password %>
127 <% end %>
128
129 staging:
0066782 @kowshik Increase staging timeouts to 300.
kowshik authored
130 max_staging_runtime: <%= cc_props.max_staging_runtime || 300 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
131 auth:
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
132 user: <%= cc_props.staging_upload_user %>
133 password: <%= cc_props.staging_upload_password %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
134
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
135 allow_debug: <%= cc_props.allow_debug || false %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
136
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
137 admins: [ "<%= cc_props.admins.join('", "') %>" ]
e121304 @olegshaldybin Initial commit
olegshaldybin authored
138
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
139 https_required: <%= cc_props.https_required || false %>
140 https_required_for_admins: <%= cc_props.https_required_for_admins || false %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
141
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
142 <% if cc_props.admin_account_capacity %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
143 admin_account_capacity:
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
144 memory: <%= cc_props.admin_account_capacity.memory || 32 * 1024 %>
145 app_uris: <%= cc_props.admin_account_capacity.app_uris || 16 %>
146 services: <%= cc_props.admin_account_capacity.services || 32 %>
147 apps: <%= cc_props.admin_account_capacity.apps || 200 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
148 <% end %>
149
150 # Normal users limited to 512M, 4 Services, and 4 URIs per App
151 default_account_capacity:
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
152 <% unless cc_props.default_account_capacity %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
153 memory: 2048
154 app_uris: 4
155 services: 16
156 apps: 20
157 <% else %>
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
158 memory: <%= cc_props.default_account_capacity.memory || 2048 %>
159 app_uris: <%= cc_props.default_account_capacity.app_uris || 4 %>
160 services: <%= cc_props.default_account_capacity.services || 16 %>
161 apps: <%= cc_props.default_account_capacity.apps || 16 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
162 <% end %>
163
164 builtin_services:
22335ed support service token rotation
figof authored
165 <% services = ['mysql', 'redis', 'mongodb', 'memcached', 'rabbit', 'postgresql', 'atmos', 'filesystem', 'vblob'] %>
166 <% for service in services %>
167 <% service_gateway = "#{service}_gateway" %>
168 <% if properties.send(service_gateway.to_sym) %>
169 <% service = 'rabbitmq' if service == 'rabbit'
170 service = 'blob' if service == 'vblob' %>
171 <%= "#{service}:"%>
172 token: <%= properties.send(service_gateway.to_sym).token %>
173 <% if properties.send(service_gateway.to_sym).token_b %>
174 token_b: <%= properties.send(service_gateway.to_sym).token_b %>
175 <% end %>
176 <% end %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
177 <% end %>
178 <% if properties.external_service_tokens %>
407ac14 @dsyer Fix external tokens iteration
dsyer authored
179 <% properties.external_service_tokens.marshal_dump.each do |name,token| %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
180 <%= name %>:
181 token: <%= token %>
182 <% end %>
183 <% end %>
184
937d720 Bosh packaging for Marketplace Gateway
Harshawardhan Gadgil authored
185 <%
186 service_proxy_tokens = []
187 if properties.service_broker
188 properties.service_broker.token.each { |tok| service_proxy_tokens << tok }
189 end
190
191 if properties.marketplace_gateway
192 properties.marketplace_gateway.tokens.each { |tok| service_proxy_tokens << tok }
193 end
194 %>
195
196 service_proxy:
197 token: <%= "['#{service_proxy_tokens.join("' , '")}']" %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
198
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
199 <%
e02f338 @pbozeman squashed merge of ccng-side-by-side to master
pbozeman authored
200 if cc_props.service_extension && cc_props.service_extension.service_lifecycle
201 max_upload_size = cc_props.service_extension.service_lifecycle.max_upload_size || 1
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
202 if properties.service_lifecycle
203 if properties.service_lifecycle.serialization_max_download_size
204 max_download_size = properties.service_lifecycle.serialization_max_download_size
205 if max_upload_size.to_i > max_download_size.to_i
206 max_upload_size = max_download_size.to_i
207 end
208 end
209 sds = properties.service_lifecycle.serialization_data_server
210 end
211 if properties.serialization_data_server
212 sds_port = properties.serialization_data_server.port
213 upload_token = properties.serialization_data_server.upload_token
214 upload_timeout = properties.serialization_data_server.upload_timeout
215 end
216 sds_port ||= 8080
217 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
218 service_lifecycle:
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
219 max_upload_size: <%= max_upload_size %>
220 upload_token: <%= upload_token %>
221 <% if upload_timeout %>
222 upload_timeout: <%=upload_timeout%>
223 <% end %>
224 <% if sds %>
225 serialization_data_server:
226 <% sds.each do |server| %>
227 - <%=server%>:<%=sds_port%>
228 <% end %>
229 <% end %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
230 <% end %>
231
7ef8b9a Improve process for adding runtimes and frameworks Part 1
Jennifer Hickey authored
232 runtimes_file: /var/vcap/jobs/cloud_controller/config/runtimes.yml
Something went wrong with that request. Please try again.