Skip to content

Commit dc0811a

Browse files
committed
[FAB-10151] reorder sections in configtx.yaml
Most of the configtx.yaml documents in the tree contained invalid YAML. This wasn't detected before now because bugs in go-yaml have hidden the issue. These changes need to be made before the parser is bumped to help ensure things don't break. A draft release note has been added to the tree to highlight the issue as we approach the end of our current release cycle. Change-Id: I8d9cd9e2278ccd51ffd136fd17e3d858f6b56b2d Signed-off-by: Matthew Sykes <sykesmat@us.ibm.com>
1 parent ec1f138 commit dc0811a

File tree

5 files changed

+569
-537
lines changed

5 files changed

+569
-537
lines changed

examples/cluster/config/configtx.yaml

+64-64
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,51 @@
66
---
77
################################################################################
88
#
9-
# Profile
9+
# SECTION: Orderer
1010
#
11-
# - Different configuration profiles may be encoded here to be specified
12-
# as parameters to the configtxgen tool
11+
# - This section defines the values to encode into a config transaction or
12+
# genesis block for orderer related parameters
1313
#
1414
################################################################################
15-
Profiles:
15+
Orderer: &OrdererDefaults
1616

17-
SampleOrg:
18-
Orderer:
19-
<<: *OrdererDefaults
20-
Organizations:
21-
- *OrdererOrg
22-
Consortiums:
23-
SampleConsortium:
24-
Organizations:
25-
- *OrdererOrg
26-
- *Org1
17+
# Orderer Type: The orderer implementation to start
18+
# Available types are "solo" and "kafka"
19+
OrdererType: solo
2720

28-
SampleChannel:
29-
Consortium: SampleConsortium
30-
Application:
31-
Organizations:
32-
- *Org1
21+
Addresses:
22+
- orderer:7050
23+
24+
# Batch Timeout: The amount of time to wait before creating a batch
25+
BatchTimeout: 2s
26+
27+
# Batch Size: Controls the number of messages batched into a block
28+
BatchSize:
29+
30+
# Max Message Count: The maximum number of messages to permit in a batch
31+
MaxMessageCount: 10
32+
33+
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
34+
# the serialized messages in a batch.
35+
AbsoluteMaxBytes: 98 MB
36+
37+
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
38+
# the serialized messages in a batch. A message larger than the preferred
39+
# max bytes will result in a batch larger than preferred max bytes.
40+
PreferredMaxBytes: 512 KB
41+
42+
Kafka:
43+
# Brokers: A list of Kafka brokers to which the orderer connects. Edit
44+
# this list to identify the brokers of the ordering service.
45+
# NOTE: Use IP:port notation.
46+
Brokers:
47+
- kafka0:9092
48+
- kafka1:9092
49+
- kafka2:9092
50+
51+
# Organizations is the list of orgs which are defined as participants on
52+
# the orderer side of the network
53+
Organizations:
3354

3455
################################################################################
3556
#
@@ -77,62 +98,41 @@ Organizations:
7798

7899
################################################################################
79100
#
80-
# SECTION: Orderer
101+
# SECTION: Application
81102
#
82103
# - This section defines the values to encode into a config transaction or
83-
# genesis block for orderer related parameters
104+
# genesis block for application related parameters
84105
#
85106
################################################################################
86-
Orderer: &OrdererDefaults
87-
88-
# Orderer Type: The orderer implementation to start
89-
# Available types are "solo" and "kafka"
90-
OrdererType: solo
91-
92-
Addresses:
93-
- orderer:7050
94-
95-
# Batch Timeout: The amount of time to wait before creating a batch
96-
BatchTimeout: 2s
97-
98-
# Batch Size: Controls the number of messages batched into a block
99-
BatchSize:
100-
101-
# Max Message Count: The maximum number of messages to permit in a batch
102-
MaxMessageCount: 10
103-
104-
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
105-
# the serialized messages in a batch.
106-
AbsoluteMaxBytes: 98 MB
107-
108-
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
109-
# the serialized messages in a batch. A message larger than the preferred
110-
# max bytes will result in a batch larger than preferred max bytes.
111-
PreferredMaxBytes: 512 KB
112-
113-
Kafka:
114-
# Brokers: A list of Kafka brokers to which the orderer connects. Edit
115-
# this list to identify the brokers of the ordering service.
116-
# NOTE: Use IP:port notation.
117-
Brokers:
118-
- kafka0:9092
119-
- kafka1:9092
120-
- kafka2:9092
107+
Application: &ApplicationDefaults
121108

122109
# Organizations is the list of orgs which are defined as participants on
123-
# the orderer side of the network
110+
# the application side of the network
124111
Organizations:
125112

126113
################################################################################
127114
#
128-
# SECTION: Application
115+
# Profile
129116
#
130-
# - This section defines the values to encode into a config transaction or
131-
# genesis block for application related parameters
117+
# - Different configuration profiles may be encoded here to be specified
118+
# as parameters to the configtxgen tool
132119
#
133120
################################################################################
134-
Application: &ApplicationDefaults
121+
Profiles:
135122

136-
# Organizations is the list of orgs which are defined as participants on
137-
# the application side of the network
138-
Organizations:
123+
SampleOrg:
124+
Orderer:
125+
<<: *OrdererDefaults
126+
Organizations:
127+
- *OrdererOrg
128+
Consortiums:
129+
SampleConsortium:
130+
Organizations:
131+
- *OrdererOrg
132+
- *Org1
133+
134+
SampleChannel:
135+
Consortium: SampleConsortium
136+
Application:
137+
Organizations:
138+
- *Org1

0 commit comments

Comments
 (0)