Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 222 lines (191 sloc) 7.475 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 %>
d10ec30 @bnugmanov change cc log level to "info", parametrize it.
bnugmanov authored
55 level: <%= properties.cc.logging_level || "info" %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
56
57 rails_logging:
58 file: /var/vcap/sys/log/cloud_controller/rails.log
d10ec30 @bnugmanov change cc log level to "info", parametrize it.
bnugmanov authored
59 level: <%= properties.cc.rails_logging_level || "info" %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
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 %>
c7457da @joeldsa Use HTTPS for all traffic to the UAA
joeldsa authored
96 url: https://uaa.<%= properties.domain %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
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
c7457da @joeldsa Use HTTPS for all traffic to the UAA
joeldsa authored
104 url: https://uaa.<%= properties.domain %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
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:
22335ed support service token rotation
figof authored
163 <% services = ['mysql', 'redis', 'mongodb', 'memcached', 'rabbit', 'postgresql', 'atmos', 'filesystem', 'vblob'] %>
164 <% for service in services %>
165 <% service_gateway = "#{service}_gateway" %>
166 <% if properties.send(service_gateway.to_sym) %>
167 <% service = 'rabbitmq' if service == 'rabbit'
168 service = 'blob' if service == 'vblob' %>
169 <%= "#{service}:"%>
170 token: <%= properties.send(service_gateway.to_sym).token %>
171 <% if properties.send(service_gateway.to_sym).token_b %>
172 token_b: <%= properties.send(service_gateway.to_sym).token_b %>
173 <% end %>
174 <% end %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
175 <% end %>
176 <% if properties.external_service_tokens %>
177 <% properties.external_service_tokens.each do |name,token| %>
178 <%= name %>:
179 token: <%= token %>
180 <% end %>
181 <% end %>
182
183 <% if properties.service_broker %>
184 service_broker:
185 token: <%= properties.service_broker.token %>
186 <% end %>
187
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
188 <%
189 if properties.cc.service_extension && properties.cc.service_extension.service_lifecycle
190 max_upload_size = properties.cc.service_extension.service_lifecycle.max_upload_size || 1
191 if properties.service_lifecycle
192 if properties.service_lifecycle.serialization_max_download_size
193 max_download_size = properties.service_lifecycle.serialization_max_download_size
194 if max_upload_size.to_i > max_download_size.to_i
195 max_upload_size = max_download_size.to_i
196 end
197 end
198 sds = properties.service_lifecycle.serialization_data_server
199 end
200 if properties.serialization_data_server
201 sds_port = properties.serialization_data_server.port
202 upload_token = properties.serialization_data_server.upload_token
203 upload_timeout = properties.serialization_data_server.upload_timeout
204 end
205 sds_port ||= 8080
206 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
207 service_lifecycle:
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
208 max_upload_size: <%= max_upload_size %>
209 upload_token: <%= upload_token %>
210 <% if upload_timeout %>
211 upload_timeout: <%=upload_timeout%>
212 <% end %>
213 <% if sds %>
214 serialization_data_server:
215 <% sds.each do |server| %>
216 - <%=server%>:<%=sds_port%>
217 <% end %>
218 <% end %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
219 <% end %>
220
7ef8b9a Improve process for adding runtimes and frameworks Part 1
Jennifer Hickey authored
221 runtimes_file: /var/vcap/jobs/cloud_controller/config/runtimes.yml
Something went wrong with that request. Please try again.