This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
/
cloud_controller.yml.erb
126 lines (110 loc) · 3.84 KB
/
cloud_controller.yml.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---
# Cloud Controller URI
external_uri: api.<%= node[:deployment][:domain] %>
description: <%= node[:deployment][:welcome] %>
support_address: http://support.cloudfoundry.com
# local_route is the IP address of a well known server on your network, it
# is used to choose the right ip address (think of hosts that have multiple nics
# and IP addresses assigned to them) of the host running the cloud controller. Default
# value of nil, should work in most cases.
local_route: <%= node[:cloud_controller][:local_route] %>
# Specifies if new users are allowed to register via VMC
allow_registration: true
# Allow applications to register URIs that are outside your domain.
# Legacy (FIXME REMOVE)
allow_external_app_uris: false
# This dicatates what the uri namespace rules
# are for applications. Admins can overide any of the
# below accept taking a used uri.
app_uris:
# Allow applications to register URIs that are outside your domain.
allow_external: false
# reserved_file:
# reserved_list: [www, test, dash, register, foo, bar]
# reserved_length: 3
external_port: 9022 #public CC port
# nginx proxy provide multiple functions including offloading of file uploads/downloads.
nginx:
use_nginx: false #nginx proxy in front of CC?
# instance_socket: /tmp/cloud_controller.sock
insecure_instance_port: 9025 #debug only!!!! -- not for production use.
# if log_file is set, it must be a fully-qualified path,
# because the bin/vcap script reads it directly from the file.
logging:
level: debug
# file:
# Settings for the rails logger
rails_logging:
level: debug
# file:
directories:
droplets: /var/vcap/shared/droplets
resources: /var/vcap/shared/resources
# default values, relative to Rails.root. Leading slash for full path.
staging_manifests: <%= File.join(node[:deployment][:config_path], "staging") %>
staging_cache: /var/vcap/data/cloud_controller/staging
tmpdir: /var/vcap/data/cloud_controller/tmp
# NATS message bus URI
mbus: nats://<%= node[:nats_server][:user] %>:<%= node[:nats_server][:password] %>@<%= node[:nats_server][:host] %>:<%= node[:nats_server][:port] %>/
keys:
password: 'password key goes here'
token: 'token key goes here'
pid: /var/vcap/sys/run/cloudcontroller.pid
rails_environment: production
database_environment: # replaces database.yml
production:
database: <%= node[:ccdb][:database] %>
host: <%= node[:ccdb][:host] %>
port: <%= node[:ccdb][:port] %>
encoding: utf8
username: <%= node[:ccdb][:user] %>
password: <%= node[:ccdb][:password] %>
adapter: <%= node[:ccdb][:adapter] %>
timeout: 2000
template: template0 # Required for utf8 encoding
# App staging parameters
staging:
max_concurrent_stagers: 10
# Max duration for staging process
max_staging_runtime: 120 # secs
# Create a secure environment for staging
secure: false
# admin support
admins: [ <%= node[:cloud_controller][:admins].join(", ") %> ]
https_required: false
https_required_for_admins: false
# Controls the amount of resources assigned to a user
# Normal user accounts
default_account_capacity:
memory: 2048
app_uris: <%= node[:capacity][:max_uris] %>
services: <%= node[:capacity][:max_services] %>
apps: <%= node[:capacity][:max_apps] %>
# Services we provide, and their tokens. Avoids bootstrapping DB.
builtin_services:
<% @builtin_services.each do |service_name| %>
<%= service_name %>:
token: <%= node[(service_name + "_node").to_sym][:token] %>
<% end %>
# Enable/disable starting apps in debug modes.
allow_debug: true
# Supported runtime versions and debug modes.
# Used for /info/runtimes endpoint (served unfiltered as JSON)
runtimes:
ruby18:
version: 1.8.7
ruby19:
version: 1.9.2
node:
version: 0.4.12
java:
version: 1.6.0
debug_modes:
- run
- suspend
php:
version: 5.3.[2-6]
erlangR14B02:
version: ".* 5.8.3"
python26:
version: 2.6.5