Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 222 lines (189 sloc) 7.334 kb
e121304 @olegshaldybin Initial commit
olegshaldybin authored
1 ---
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
2 <% db = properties.ccdb.databases.find { |db| db.tag == "cc" } %>
3 <% db_role = properties.ccdb.roles.find { |role| role.tag == "admin" } %>
3a1abef @olegshaldybin Migrate ccdb_postgres -> new postgres template
olegshaldybin authored
4
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
5 external_uri: api.<%= properties.domain %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
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 %>
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
9 <% if properties.cc.allow_registration || properties.cc.allow_registration == nil %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
10 allow_registration: true
11 <% else %>
12 allow_registration: false
13 <% end %>
14 external_port: 9022 #public CC port
15
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
16 <% if properties.cc.max_droplet_size %>
17 max_droplet_size: <%= properties.cc.max_droplet_size %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
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
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
23 password: <%= properties.cc.password %>
9357538 @bnugmanov [hm2][hm_shadow] Add health_manager_next (hm2), hm_shadow
bnugmanov authored
24
e121304 @olegshaldybin Initial commit
olegshaldybin authored
25 nginx:
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
26 use_nginx: <%= properties.cc.use_nginx %> #nginx proxy in front of CC?
e121304 @olegshaldybin Initial commit
olegshaldybin authored
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 %>
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
31 index_page: <%= properties.cc.index_page %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
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 tmpdir: /var/vcap/data/cloud_controller/tmp
48
49 logging:
50 file: /var/vcap/sys/log/cloud_controller/cloud_controller.log
51 <% if properties.syslog_aggregator %>
52 syslog: vcap.cloud_controller
53 <% end %>
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
54 level: <%= properties.cc.logging_level || "info" %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
55
56 rails_logging:
57 file: /var/vcap/sys/log/cloud_controller/rails.log
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
58 level: <%= properties.cc.rails_logging_level || "info" %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
59
60 event_logging:
61 file: /var/vcap/sys/log/cloud_controller/events.log
62
63 keys:
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
64 password: <%= properties.cc.password %>
65 token: <%= properties.cc.token %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
66
67 pid: /var/vcap/sys/run/cloud_controller/cloud_controller.pid
68
69 mbus: nats://<%= properties.nats.user %>:<%= properties.nats.password %>@<%= properties.nats.address %>:<%= properties.nats.port %>
70
71 rails_environment: production
72
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
73 <% if properties.cc.new_initial_placement && spec.index.to_i == 0 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
74 new_initial_placement: true
75 <% else %>
76 new_initial_placement: false
77 <% end %>
78
79 database_environment:
80 production:
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
81 database: <%= db.name %>
82 host: <%= properties.ccdb.address %>
83 port: <%= properties.ccdb.port %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
84 encoding: utf8
3a1abef @olegshaldybin Migrate ccdb_postgres -> new postgres template
olegshaldybin authored
85 username: <%= db_role.name %>
86 password: <%= db_role.password %>
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
87 pool: <%= properties.ccdb.pool_size %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
88 timeout: 2000
89 template: template0 # Required for utf8 encoding
90 adapter: postgresql
91
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
92 <% if properties.cc.uaa && properties.uaa.cc %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
93 uaa:
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
94 enabled: <%= properties.cc.uaa.enabled %>
c7457da @joeldsa Use HTTPS for all traffic to the UAA
joeldsa authored
95 url: https://uaa.<%= properties.domain %>
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
96 resource_id: <%= properties.cc.uaa.resource_id %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
97 token_secret: <%= properties.uaa.cc.token_secret %>
5053f4e @joeldsa UAA Phase4 changes to release
joeldsa authored
98 client_secret: <%= properties.uaa.cc.client_secret %>
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
99 token_creation_email_filter: <%= properties.cc.uaa.token_creation_email_filter %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
100 <% else %>
101 uaa:
102 enabled: false
c7457da @joeldsa Use HTTPS for all traffic to the UAA
joeldsa authored
103 url: https://uaa.<%= properties.domain %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
104 resource_id: cloud_controller
105 token_secret:
106 client_secret:
5053f4e @joeldsa UAA Phase4 changes to release
joeldsa authored
107 token_creation_email_filter:
e121304 @olegshaldybin Initial commit
olegshaldybin authored
108 <% end %>
109
110
111 <% if properties.vcap_redis %>
112 redis:
113 host: <%= properties.vcap_redis.address %>
114 port: <%= properties.vcap_redis.port %>
115 password: <%= properties.vcap_redis.password %>
116 <% end %>
117
118 staging:
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
119 max_staging_runtime: <%= properties.cc.max_staging_runtime || 120 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
120 auth:
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
121 user: <%= properties.cc.staging_upload_user %>
122 password: <%= properties.cc.staging_upload_password %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
123
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
124 allow_debug: <%= properties.cc.allow_debug || false %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
125
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
126 admins: [ "<%= properties.cc.admins.join('", "') %>" ]
e121304 @olegshaldybin Initial commit
olegshaldybin authored
127
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
128 https_required: <%= properties.cc.https_required || false %>
129 https_required_for_admins: <%= properties.cc.https_required_for_admins || false %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
130
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
131 <% if properties.cc.admin_account_capacity %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
132 admin_account_capacity:
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
133 memory: <%= properties.cc.admin_account_capacity.memory || 32 * 1024 %>
134 app_uris: <%= properties.cc.admin_account_capacity.app_uris || 16 %>
135 services: <%= properties.cc.admin_account_capacity.services || 32 %>
136 apps: <%= properties.cc.admin_account_capacity.apps || 200 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
137 <% end %>
138
139 # Normal users limited to 512M, 4 Services, and 4 URIs per App
140 default_account_capacity:
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
141 <% unless properties.cc.default_account_capacity %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
142 memory: 2048
143 app_uris: 4
144 services: 16
145 apps: 20
146 <% else %>
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
147 memory: <%= properties.cc.default_account_capacity.memory || 2048 %>
148 app_uris: <%= properties.cc.default_account_capacity.app_uris || 4 %>
149 services: <%= properties.cc.default_account_capacity.services || 16 %>
150 apps: <%= properties.cc.default_account_capacity.apps || 16 %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
151 <% end %>
152
153 builtin_services:
22335ed support service token rotation
figof authored
154 <% services = ['mysql', 'redis', 'mongodb', 'memcached', 'rabbit', 'postgresql', 'atmos', 'filesystem', 'vblob'] %>
155 <% for service in services %>
156 <% service_gateway = "#{service}_gateway" %>
157 <% if properties.send(service_gateway.to_sym) %>
158 <% service = 'rabbitmq' if service == 'rabbit'
159 service = 'blob' if service == 'vblob' %>
160 <%= "#{service}:"%>
161 token: <%= properties.send(service_gateway.to_sym).token %>
162 <% if properties.send(service_gateway.to_sym).token_b %>
163 token_b: <%= properties.send(service_gateway.to_sym).token_b %>
164 <% end %>
165 <% end %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
166 <% end %>
167 <% if properties.external_service_tokens %>
407ac14 @dsyer Fix external tokens iteration
dsyer authored
168 <% properties.external_service_tokens.marshal_dump.each do |name,token| %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
169 <%= name %>:
170 token: <%= token %>
171 <% end %>
172 <% end %>
173
937d720 Bosh packaging for Marketplace Gateway
Harshawardhan Gadgil authored
174 <%
175 service_proxy_tokens = []
176 if properties.service_broker
177 properties.service_broker.token.each { |tok| service_proxy_tokens << tok }
178 end
179
180 if properties.marketplace_gateway
181 properties.marketplace_gateway.tokens.each { |tok| service_proxy_tokens << tok }
182 end
183 %>
184
185 service_proxy:
186 token: <%= "['#{service_proxy_tokens.join("' , '")}']" %>
e121304 @olegshaldybin Initial commit
olegshaldybin authored
187
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
188 <%
12dbcb3 @pbozeman Revert "adding cc_partition to templates"
pbozeman authored
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
67e1a1a refactor import_from_data API and bump pointers
Frank Lu authored
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.