-
Notifications
You must be signed in to change notification settings - Fork 0
/
bosh.yml
198 lines (184 loc) · 4.78 KB
/
bosh.yml
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
---
name: bosh
releases:
- name: bosh
version: "264.7.0"
url: https://s3.amazonaws.com/bosh-compiled-release-tarballs/bosh-264.7.0-ubuntu-trusty-3468.21-20180125-031202-579399892-20180125031207.tgz?versionId=gnR.RVKDRH_Vk63jxsGBOhcHOZ9p8qCJ
sha1: 3850c68124bf5bce3cfb1433cce52e2d67741d94
resource_pools:
- name: vms
network: default
env:
bosh:
password: '*'
mbus:
cert: ((mbus_bootstrap_ssl))
disk_pools:
- name: disks
disk_size: 65_536
networks:
- name: default
type: manual
subnets:
- range: ((internal_cidr))
gateway: ((internal_gw))
static: [((internal_ip))]
dns: [8.8.8.8]
instance_groups:
- name: bosh
instances: 1
jobs:
- {name: nats, release: bosh}
- {name: postgres-9.4, release: bosh}
- {name: blobstore, release: bosh}
- {name: director, release: bosh}
- {name: health_monitor, release: bosh}
resource_pool: vms
persistent_disk_pool: disks
networks:
- name: default
static_ips: [((internal_ip))]
properties:
nats:
address: ((internal_ip))
user: nats
password: ((nats_password))
tls:
ca: ((nats_server_tls.ca))
client_ca:
certificate: ((nats_ca.certificate))
private_key: ((nats_ca.private_key))
server:
certificate: ((nats_server_tls.certificate))
private_key: ((nats_server_tls.private_key))
director:
certificate: ((nats_clients_director_tls.certificate))
private_key: ((nats_clients_director_tls.private_key))
health_monitor:
certificate: ((nats_clients_health_monitor_tls.certificate))
private_key: ((nats_clients_health_monitor_tls.private_key))
postgres: &db
listen_address: 127.0.0.1
host: 127.0.0.1
user: postgres
password: ((postgres_password))
database: bosh
adapter: postgres
blobstore:
address: ((internal_ip))
port: 25250
provider: dav
director:
user: director
password: ((blobstore_director_password))
agent:
user: agent
password: ((blobstore_agent_password))
director:
address: 127.0.0.1
name: ((director_name))
db: *db
flush_arp: true
enable_post_deploy: true
generate_vm_passwords: true
enable_dedicated_status_worker: true
enable_nats_delivered_templates: true
workers: 4
local_dns:
enabled: true
events:
record_events: true
ssl:
key: ((director_ssl.private_key))
cert: ((director_ssl.certificate))
user_management:
provider: local
local:
users:
- name: admin
password: ((admin_password))
- name: hm
password: ((hm_password))
hm:
director_account:
user: hm
password: ((hm_password))
ca_cert: ((director_ssl.ca))
resurrector_enabled: true
ntp: &ntp
- server 0.cn.pool.ntp.org
- server 1.cn.pool.ntp.org
- server 2.cn.pool.ntp.org
- server 3.cn.pool.ntp.org
agent:
mbus: nats://nats:((nats_password))@((internal_ip)):4222
cloud_provider:
mbus: https://mbus:((mbus_bootstrap_password))@((internal_ip)):6868
cert: ((mbus_bootstrap_ssl))
properties:
agent: {mbus: "https://mbus:((mbus_bootstrap_password))@0.0.0.0:6868"}
blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache}
ntp: *ntp
variables:
- name: admin_password
type: password
- name: blobstore_director_password
type: password
- name: blobstore_agent_password
type: password
- name: hm_password
type: password
- name: mbus_bootstrap_password
type: password
- name: nats_password
type: password
- name: postgres_password
type: password
- name: prometheus_bosh_secret
type: password
- name: wise_rabbitmq_secret
type: password
- name: default_ca
type: certificate
options:
is_ca: true
common_name: ca
- name: mbus_bootstrap_ssl
type: certificate
options:
ca: default_ca
common_name: ((internal_ip))
alternative_names: [((internal_ip))]
- name: director_ssl
type: certificate
options:
ca: default_ca
common_name: ((internal_ip))
alternative_names: [((internal_ip))]
- name: nats_ca
type: certificate
options:
is_ca: true
common_name: default.nats-ca.bosh-internal
- name: nats_server_tls
type: certificate
options:
ca: nats_ca
common_name: default.nats.bosh-internal
alternative_names: [((internal_ip))]
extended_key_usage:
- server_auth
- name: nats_clients_director_tls
type: certificate
options:
ca: nats_ca
common_name: default.director.bosh-internal
extended_key_usage:
- client_auth
- name: nats_clients_health_monitor_tls
type: certificate
options:
ca: nats_ca
common_name: default.hm.bosh-internal
extended_key_usage:
- client_auth