-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathfabric-x.yaml
More file actions
337 lines (331 loc) · 12.6 KB
/
Copy pathfabric-x.yaml
File metadata and controls
337 lines (331 loc) · 12.6 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
# This inventory runs an Hyperledger Fabric-X network by generating the crypto material directly on the remote
# nodes using "Fabric CA".
# This approach allows to generate the private key directly on the remote node, which is the safest approach.
# All the services run as containers, therefore make sure to have a container engine installed on
# your target machines (Docker or Podman).
all:
vars:
# =========================
# Organizations
# =========================
organizations:
orderer_org_1: &OrdererOrg1
name: OrdererOrg1
domain: ordererorg1.example.com
orderer_org_2: &OrdererOrg2
name: OrdererOrg2
domain: ordererorg2.example.com
orderer_org_3: &OrdererOrg3
name: OrdererOrg3
domain: ordererorg3.example.com
orderer_org_4: &OrdererOrg4
name: OrdererOrg4
domain: ordererorg4.example.com
org1: &Org1
name: Org1
domain: org1.example.com
children:
# =========================
# Network (HLFX)
# =========================
network:
children:
# =========================
# Hyperledger Fabric CAs
# =========================
fabric_cas:
children:
# =========================
# Hyperledger Fabric CA DBs
# =========================
fabric_ca_dbs:
vars:
postgres_user: postgres
postgres_password: example
postgres_use_tls: true
hosts:
fca-orderer-org1-db:
postgres_db: ordererOrg1DB
postgres_port: 9120
fca-orderer-org2-db:
postgres_db: ordererOrg2DB
postgres_port: 9130
fca-orderer-org3-db:
postgres_db: ordererOrg3DB
postgres_port: 9140
fca-orderer-org4-db:
postgres_db: ordererOrg4DB
postgres_port: 9150
fca-org1-db:
postgres_db: Org1DB
postgres_port: 9170
# =========================
# Hyperledger Fabric CA Servers
# =========================
fabric_ca_servers:
vars:
fabric_ca_use_tls: true
fabric_ca_name: "{{ inventory_hostname }}"
fabric_ca_admin:
name: admin
secret: adminPWD
attrs:
hf.Registrar.Roles: "*"
hf.Registrar.Attributes: "*"
hf.GenCRL: "true"
hf.Revoker: "true"
hosts:
fca-orderer-org1:
fabric_ca_port: 9019
fabric_ca_operations_port: 9020
organization: *OrdererOrg1
postgres_db_host: fca-orderer-org1-db
fca-orderer-org2:
fabric_ca_port: 9029
fabric_ca_operations_port: 9030
organization: *OrdererOrg2
postgres_db_host: fca-orderer-org2-db
fca-orderer-org3:
fabric_ca_port: 9039
fabric_ca_operations_port: 9040
organization: *OrdererOrg3
postgres_db_host: fca-orderer-org3-db
fca-orderer-org4:
fabric_ca_port: 9049
fabric_ca_operations_port: 9050
organization: *OrdererOrg4
postgres_db_host: fca-orderer-org4-db
fca-org1:
fabric_ca_port: 9069
fabric_ca_operations_port: 9070
organization: *Org1
postgres_db_host: fca-org1-db
# =========================
# Hyperledger Fabric-X
# =========================
fabric_x:
children:
# =========================
# HLFX Orderers
# =========================
fabric_x_orderers:
vars:
orderer_use_tls: true
orderer_use_mtls: true
children:
fabric_x_orderer_1:
vars:
organization:
<<: *OrdererOrg1
fabric_ca_host: fca-orderer-org1
role: orderer
orderer:
name: "{{ inventory_hostname }}"
secret: "{{ inventory_hostname }}PWD"
orderer_group: 1
hosts:
orderer-router-1:
orderer_component_type: router
orderer_rpc_port: 7050
orderer_operations_port: 7060
orderer-consenter-1:
orderer_component_type: consensus
orderer_rpc_port: 7051
orderer_operations_port: 7061
orderer-assembler-1:
orderer_component_type: assembler
orderer_rpc_port: 7052
orderer_operations_port: 7062
orderer-batcher-1:
orderer_component_type: batcher
orderer_shard_id: 1
orderer_rpc_port: 7053
orderer_operations_port: 7063
fabric_x_orderer_2:
vars:
organization:
<<: *OrdererOrg2
fabric_ca_host: fca-orderer-org2
role: orderer
orderer:
name: "{{ inventory_hostname }}"
secret: "{{ inventory_hostname }}PWD"
orderer_group: 2
hosts:
orderer-router-2:
orderer_component_type: router
orderer_rpc_port: 7150
orderer_operations_port: 7160
orderer-consenter-2:
orderer_component_type: consensus
orderer_rpc_port: 7151
orderer_operations_port: 7161
orderer-assembler-2:
orderer_component_type: assembler
orderer_rpc_port: 7152
orderer_operations_port: 7162
orderer-batcher-2:
orderer_component_type: batcher
orderer_shard_id: 1
orderer_rpc_port: 7153
orderer_operations_port: 7163
fabric_x_orderer_3:
vars:
organization:
<<: *OrdererOrg3
fabric_ca_host: fca-orderer-org3
role: orderer
orderer:
name: "{{ inventory_hostname }}"
secret: "{{ inventory_hostname }}PWD"
orderer_group: 3
hosts:
orderer-router-3:
orderer_component_type: router
orderer_rpc_port: 7250
orderer_operations_port: 7260
orderer-consenter-3:
orderer_component_type: consensus
orderer_rpc_port: 7251
orderer_operations_port: 7261
orderer-assembler-3:
orderer_component_type: assembler
orderer_rpc_port: 7252
orderer_operations_port: 7262
orderer-batcher-3:
orderer_component_type: batcher
orderer_shard_id: 1
orderer_rpc_port: 7253
orderer_operations_port: 7263
fabric_x_orderer_4:
vars:
organization:
<<: *OrdererOrg4
fabric_ca_host: fca-orderer-org4
role: orderer
orderer:
name: "{{ inventory_hostname }}"
secret: "{{ inventory_hostname }}PWD"
orderer_group: 4
hosts:
orderer-router-4:
orderer_component_type: router
orderer_rpc_port: 7350
orderer_operations_port: 7360
orderer-consenter-4:
orderer_component_type: consensus
orderer_rpc_port: 7351
orderer_operations_port: 7361
orderer-assembler-4:
orderer_component_type: assembler
orderer_rpc_port: 7352
orderer_operations_port: 7362
orderer-batcher-4:
orderer_component_type: batcher
orderer_shard_id: 1
orderer_rpc_port: 7353
orderer_operations_port: 7363
# =========================
# HLFX Committer
# =========================
fabric_x_committers:
children:
fabric_x_committer:
vars:
committer_use_tls: true
committer_use_mtls: true
committer_monitoring_mtls_clients:
- prometheus
organization:
<<: *Org1
fabric_ca_host: fca-org1
role: peer
peer:
name: "{{ inventory_hostname }}"
secret: "{{ inventory_hostname }}PWD"
hosts:
committer-db:
postgres_user: sc_user
postgres_password: sc_secret_pwd
postgres_db: sc_db
postgres_port: 5150
postgres_use_tls: true
committer-validator:
committer_component_type: validator
committer_rpc_port: 5100
committer_metrics_port: 5200
postgres_db_host: committer-db
committer-verifier:
committer_component_type: verifier
committer_rpc_port: 5110
committer_metrics_port: 5210
committer-coordinator:
committer_component_type: coordinator
committer_rpc_port: 5120
committer_metrics_port: 5220
committer-sidecar:
committer_component_type: sidecar
committer_rpc_port: 5130
committer_metrics_port: 5230
committer-query-service:
committer_component_type: query-service
committer_rpc_port: 5140
committer_metrics_port: 5240
postgres_db_host: committer-db
# =========================
# HLFX LoadGens
# =========================
load_generators:
hosts:
orderer-loadgen:
organization:
<<: *Org1
fabric_ca_host: fca-org1
role: peer
peer:
name: "{{ inventory_hostname }}"
secret: "{{ inventory_hostname }}PWD"
users:
- name: orderer-loadgen
secret: "{{ inventory_hostname }}PWD"
namespaces:
- id: 0
policy: threshold
loadgen_use_tls: true
loadgen_metrics_port: 12010
loadgen_rpc_port: 12020
# =========================
# Monitoring Infra
# =========================
monitoring:
hosts:
node-exporter:
node_exporter_port: 9111
node_exporter_use_tls: true
committer-db-exporter:
postgres_db_host: committer-db
postgres_exporter_port: 2110
postgres_exporter_use_tls: true
prometheus:
prometheus_port: 9090
prometheus_use_tls: true
grafana:
grafana_username: admin
grafana_password: adminPWD
grafana_web_port: 3000
grafana_use_tls: true
prometheus_host: prometheus
loki_host: loki
loki:
loki_port: 9200
loki_grpc_port: 9201
loki_use_tls: true
alloy:
alloy_port: 9300
alloy_use_tls: true
loki_host: loki