-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbosh.yml
More file actions
204 lines (198 loc) · 4.77 KB
/
bosh.yml
File metadata and controls
204 lines (198 loc) · 4.77 KB
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
199
200
201
202
203
204
---
name: bosh1
director_uuid: 7d72eb71-9a98-4081-9857-ad7c7ff4ee33
release:
name: bosh-dev1 # name of your release, you can look up this by doing: $ bosh releases
version: 6.1-dev # version of the release.
networks: #define networks
- name: default
subnets:
- reserved: #ips should not be managed by BOSH
- 10.60.98.121 - 10.60.98.254
static: #ips you will use
- 10.60.98.115 - 10.60.98.120
range: 10.60.98.0/24
gateway: 10.60.98.1
dns:
- 10.40.62.11
- 10.135.12.101
cloud_properties: #the same network as all other vms.
name: VM Network
resource_pools: #define several kinds of resource pools
- name: small
stemcell: #stemcell you will use. You can look up all the stemcells by: $ bosh stemcells
name: bosh-stemcell
version: 0.6.4
network: default
size: 3 #number of this kind of resource pool
cloud_properties:
ram: 512
disk: 2048
cpu: 1
- name: medium
stemcell:
name: bosh-stemcell
version: 0.6.4
network: default
size: 2
cloud_properties:
ram: 1024
disk: 8192
cpu: 1
- name: director
stemcell:
name: bosh-stemcell
version: 0.6.4
network: default
size: 1
cloud_properties:
ram: 2048
disk: 8192
cpu: 2
compilation:
workers: 4 #number of parallel compile workers.
network: default
cloud_properties:
ram: 2048
disk: 4096
cpu: 4
update:
canaries: 1
canary_watch_time: 60000
update_watch_time: 60000
max_in_flight: 1 #number of parallel update jobs
max_errors: 2
jobs: #define all the necessary jobs to BOSH deploy
- name: nats #define NATS, a messaging job for vms
template: nats
instances: 1
resource_pool: small
networks:
- name: default
static_ips:
- 10.60.98.120
- name: postgres #define postgres database job
template: postgres
instances: 1
resource_pool: medium
persistent_disk: 2048
networks:
- name: default
static_ips:
- 10.60.98.119
- name: redis #define redis database job
template: redis
instances: 1
resource_pool: small
networks:
- name: default
static_ips:
- 10.60.98.118
- name: director #define director. After deployed, this will be the “controller” to BOSH
template: director
instances: 1
resource_pool: director
persistent_disk: 2048
networks:
- name: default
static_ips:
- 10.60.98.117
- name: blobstore # where all the packages of BOSH are stored
template: blobstore
instances: 1
resource_pool: medium
persistent_disk: 20480 #define the storage. MB
networks:
- name: default
static_ips:
- 10.60.98.116
- name: health_monitor
template: health_monitor
instances: 1
resource_pool: small
networks:
- name: default
static_ips:
- 10.60.98.115
properties: # define property for the jobs above
env:
#http_proxy: "http://<proxy>"
#https_proxy: "http://<proxy>"
#no_proxy: ""
blobstore:
address: 10.60.98.116
port: 25251
backend_port: 25552
agent:
user: root
password: password
director: #define user and password for director
user: root
password: password
networks:
apps: default
management: default
nats:
user: root
password: password
address: 10.60.98.120
port: 4222
postgres:
user: root
password: password
address: 10.60.98.119
port: 5432
database: bosh
redis:
address: 10.60.98.118
port: 25255
password: password
director:
name: bosh_director
address: 10.60.98.117
port: 25555
hm:
http:
port: 25923
user: root
password: password
director_account:
user: root
password: password
intervals:
poll_director: 60
poll_grace_period: 30
log_stats: 300
analyze_agents: 60
agent_timeout: 180
rogue_agent_alert: 180
loglevel: info #define log level.
email_notifications: false
email_recipients:
- admin@vmware.com
smtp:
from: admin@vmware.com
host: smtp.vmware.com
port: 25
auth: plain
user: root
password: password
domain: localdomain
tsdb_enabled: false # If this option is set to false, comment out its params.
#tsdb:
# address: 10.1.4.228
# port: 4242
vcenter: #vCenter configuration according to your vCenter settings
address: 10.60.98.126
user: Administrator
password: <password of vCenter>
datacenters:
- name: vDataCenter #name of your datacent in vCenter
vm_folder: vm_folder_bosh #folder to save vm, created in vCenter.
template_folder: template_folder_bosh
disk_path: boshdeployer_bosh #disk path, created in the datastore in vCenter
datastore_pattern: NFSdatastore
persistent_datastore_pattern: NFSdatastore
allow_mixed_datastores: true
clusters:
- vCluster