Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v83
Fetching contributors…

Cannot retrieve contributors at this time

232 lines (201 sloc) 7.01 kb
---
<% db = properties.ccdb.databases.find { |db| db.tag == "cc" } %>
<% db_role = properties.ccdb.roles.find { |role| role.tag == "admin" } %>
external_uri: api.<%= properties.domain %>
description: <%= properties.description || "VMware's Cloud Application Platform" %>
support_address: <%= properties.support_address || "http://support.cloudfoundry.com" %>
local_route: <%= spec.networks.send(properties.networks.apps).ip %>
<% if properties.cc.allow_registration || properties.cc.allow_registration == nil %>
allow_registration: true
<% else %>
allow_registration: false
<% end %>
external_port: 9022 #public CC port
<% if properties.cc.max_droplet_size %>
max_droplet_size: <%= properties.cc.max_droplet_size %>
<% end %>
bulk_api:
auth:
user: bulk_api
password: <%= properties.cc.password %>
nginx:
use_nginx: <%= properties.cc.use_nginx %> #nginx proxy in front of CC?
instance_socket: /var/vcap/sys/run/cloud_controller/cloud_controller.sock
#insecure_instance_port: 9025 #NOT SECURE -- DEBUG ONLY!!!!
index: <%= spec.index %>
index_page: <%= properties.cc.index_page %>
info_file: /var/vcap/packages/cloud_controller/config/cloud_controller-info.json
# Legacy (FIXME REMOVE)
# Can't be removed yet since CC checks to make sure it's present
allow_external_app_uris: false
app_uris:
allow_external: false
reserved_file: /var/vcap/jobs/cloud_controller/config/blacklist.txt
reserved_length: 3
directories:
droplets: /var/vcap/shared/droplets
resources: /var/vcap/shared/resources
staging_manifests: /var/vcap/jobs/cloud_controller/config/staging
staging_cache: /var/vcap/data/cloud_controller/staging
tmpdir: /var/vcap/data/cloud_controller/tmp
logging:
file: /var/vcap/sys/log/cloud_controller/cloud_controller.log
<% if properties.syslog_aggregator %>
syslog: vcap.cloud_controller
<% end %>
level: debug
rails_logging:
file: /var/vcap/sys/log/cloud_controller/rails.log
level: debug
event_logging:
file: /var/vcap/sys/log/cloud_controller/events.log
keys:
password: <%= properties.cc.password %>
token: <%= properties.cc.token %>
pid: /var/vcap/sys/run/cloud_controller/cloud_controller.pid
mbus: nats://<%= properties.nats.user %>:<%= properties.nats.password %>@<%= properties.nats.address %>:<%= properties.nats.port %>
rails_environment: production
<% if properties.cc.new_initial_placement && spec.index.to_i == 0 %>
new_initial_placement: true
<% else %>
new_initial_placement: false
<% end %>
database_environment:
production:
database: <%= db.name %>
host: <%= properties.ccdb.address %>
port: <%= properties.ccdb.port %>
encoding: utf8
username: <%= db_role.name %>
password: <%= db_role.password %>
pool: <%= properties.ccdb.pool_size %>
timeout: 2000
template: template0 # Required for utf8 encoding
adapter: postgresql
<% if properties.cc.uaa && properties.uaa.cc %>
uaa:
enabled: <%= properties.cc.uaa.enabled %>
url: http://uaa.<%= properties.domain %>
resource_id: <%= properties.cc.uaa.resource_id %>
token_secret: <%= properties.uaa.cc.token_secret %>
client_secret: <%= properties.uaa.cc.client_secret %>
token_creation_email_filter: <%= properties.cc.uaa.token_creation_email_filter %>
<% else %>
uaa:
enabled: false
url: http://uaa.<%= properties.domain %>
resource_id: cloud_controller
token_secret:
client_secret:
token_creation_email_filter:
<% end %>
<% if properties.vcap_redis %>
redis:
host: <%= properties.vcap_redis.address %>
port: <%= properties.vcap_redis.port %>
password: <%= properties.vcap_redis.password %>
<% end %>
staging:
max_concurrent_stagers: <%= properties.cc.max_concurrent_stagers || 20 %>
max_staging_runtime: <%= properties.cc.max_staging_runtime || 120 %>
secure: true
<% if properties.cc.new_stager_percent %>
new_stager_percent: <%= properties.cc.new_stager_percent %>
<% end %>
<% if properties.cc.new_stager_email_regexp %>
new_stager_email_regexp: <%= properties.cc.new_stager_email_regexp %>
<% end %>
auth:
user: <%= properties.cc.staging_upload_user %>
password: <%= properties.cc.staging_upload_password %>
allow_debug: <%= properties.cc.allow_debug || false %>
admins: [ "<%= properties.cc.admins.join('", "') %>" ]
https_required: <%= properties.cc.https_required || false %>
https_required_for_admins: <%= properties.cc.https_required_for_admins || false %>
<% if properties.cc.admin_account_capacity %>
admin_account_capacity:
memory: <%= properties.cc.admin_account_capacity.memory || 32 * 1024 %>
app_uris: <%= properties.cc.admin_account_capacity.app_uris || 16 %>
services: <%= properties.cc.admin_account_capacity.services || 32 %>
apps: <%= properties.cc.admin_account_capacity.apps || 200 %>
<% end %>
# Normal users limited to 512M, 4 Services, and 4 URIs per App
default_account_capacity:
<% unless properties.cc.default_account_capacity %>
memory: 2048
app_uris: 4
services: 16
apps: 20
<% else %>
memory: <%= properties.cc.default_account_capacity.memory || 2048 %>
app_uris: <%= properties.cc.default_account_capacity.app_uris || 4 %>
services: <%= properties.cc.default_account_capacity.services || 16 %>
apps: <%= properties.cc.default_account_capacity.apps || 16 %>
<% end %>
builtin_services:
<% if properties.mysql_gateway %>
mysql:
token: <%= properties.mysql_gateway.token %>
<% end %>
<% if properties.redis_gateway %>
redis:
token: <%= properties.redis_gateway.token %>
<% end %>
<% if properties.mongodb_gateway %>
mongodb:
token: <%= properties.mongodb_gateway.token %>
<% end %>
<% if properties.memcached_gateway %>
memcached:
token: <%= properties.memcached_gateway.token %>
<% end %>
<% if properties.rabbit_gateway %>
rabbitmq:
token: <%= properties.rabbit_gateway.token %>
<% end %>
<% if properties.postgresql_gateway %>
postgresql:
token: <%= properties.postgresql_gateway.token %>
<% end %>
<% if properties.atmos_gateway %>
atmos:
token: <%= properties.atmos_gateway.token %>
<% end %>
<% if properties.filesystem_gateway %>
filesystem:
token: <%= properties.filesystem_gateway.token %>
<% end %>
<% if properties.vblob_gateway %>
vblob:
token: <%= properties.vblob_gateway.token %>
<% end %>
<% if properties.external_service_tokens %>
<% properties.external_service_tokens.each do |name,token| %>
<%= name %>:
token: <%= token %>
<% end %>
<% end %>
<% if properties.service_broker %>
service_broker:
token: <%= properties.service_broker.token %>
<% end %>
<% if properties.cc.service_extension && properties.cc.service_extension.service_lifecycle%>
service_lifecycle:
max_upload_size: <%= properties.cc.service_extension.service_lifecycle.max_upload_size || 1 %>
<% end %>
runtimes:
ruby18:
version: 1.8.7
ruby19:
version: 1.9.2
node:
version: 0.4.12
node06:
version: 0.6.8
java:
version: 1.6.0
debug_modes:
- run
- suspend
erlangR14B02:
version: ".* 5.8.3"
Jump to Line
Something went wrong with that request. Please try again.