1
- # Copyright IBM Corp. All Rights Reserved.
2
- #
3
- # SPDX-License-Identifier: Apache-2.0
4
- #
5
-
6
1
---
7
2
# ###############################################################################
8
3
#
9
4
# Profiles
10
5
#
11
6
# - Different configuration profiles may be encoded here to be specified
12
- # as parameters to the configtxgen tool. The profiles which specify consortiums
7
+ # as parameters to the configtxgen tool. The profiles which specify consortiums
13
8
# are to be used for generating the orderer genesis block. With the correct
14
9
# consortium members defined in the orderer genesis block, channel creation
15
10
# requests may be generated with only the org member names and a consortium name
@@ -23,19 +18,32 @@ Profiles:
23
18
SampleInsecureSolo :
24
19
Orderer :
25
20
<< : *OrdererDefaults
21
+ Organizations :
22
+ - *ExampleCom
26
23
Consortiums :
27
24
SampleConsortium :
28
25
Organizations :
26
+ - *Org1ExampleCom
27
+ - *Org2ExampleCom
29
28
30
29
# SampleInsecureKafka defines a configuration that differs from the
31
30
# SampleInsecureSolo one only in that is uses the Kafka-based orderer.
32
31
SampleInsecureKafka :
33
32
Orderer :
34
33
<< : *OrdererDefaults
35
34
OrdererType : kafka
35
+ Organizations :
36
+ - *ExampleCom
37
+ Application :
38
+ << : *ApplicationDefaults
39
+ Organizations :
40
+ - *ExampleCom
36
41
Consortiums :
37
42
SampleConsortium :
38
43
Organizations :
44
+ - *ExampleCom
45
+ - *Org1ExampleCom
46
+ - *Org2ExampleCom
39
47
40
48
# SampleSingleMSPSolo defines a configuration which uses the Solo orderer,
41
49
# and contains a single MSP definition (the MSP sampleconfig).
@@ -44,27 +52,44 @@ Profiles:
44
52
Orderer :
45
53
<< : *OrdererDefaults
46
54
Organizations :
47
- - *SampleOrg
55
+ - *ExampleCom
56
+ Application :
57
+ << : *ApplicationDefaults
58
+ Organizations :
59
+ - *ExampleCom
48
60
Consortiums :
49
61
SampleConsortium :
50
62
Organizations :
51
- - *SampleOrg
63
+ - *ExampleCom
64
+ - *Org1ExampleCom
65
+ - *Org2ExampleCom
52
66
53
67
# SampleEmptyInsecureChannel defines a channel with no members
54
68
# and therefore no access control
55
69
SampleEmptyInsecureChannel :
56
70
Consortium : SampleConsortium
57
71
Application :
58
72
Organizations :
73
+ - *ExampleCom
74
+
75
+ # SysTestChannel defines a channel for use with the System Test Orgs
76
+ SysTestChannel :
77
+ Consortium : SampleConsortium
78
+ Application :
79
+ Organizations :
80
+ - *Org1ExampleCom
81
+ - *Org2ExampleCom
59
82
60
83
# SampleSingleMSPChannel defines a channel with only the sample org as a
61
84
# member. It is designed to be used in conjunction with SampleSingleMSPSolo
62
85
# and SampleSingleMSPKafka orderer profiles
63
86
SampleSingleMSPChannel :
64
87
Consortium : SampleConsortium
65
88
Application :
89
+ << : *ApplicationDefaults
66
90
Organizations :
67
- - *SampleOrg
91
+ - *Org1ExampleCom
92
+ - *Org2ExampleCom
68
93
69
94
# ###############################################################################
70
95
#
@@ -76,30 +101,43 @@ Profiles:
76
101
# ###############################################################################
77
102
Organizations :
78
103
79
- # SampleOrg defines an MSP using the sampleconfig. It should never be used
80
- # in production but may be used as a template for other definitions.
81
- - &SampleOrg
82
- # DefaultOrg defines the organization which is used in the sampleconfig
83
- # of the fabric.git development environment.
84
- Name : SampleOrg
104
+ - &Org1
105
+ Name : Organization1
106
+ ID : Org1
107
+ MSPDir : ./peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp
108
+ AdminPrincipal : Role.MEMBER
109
+ AnchorPeers :
110
+ - Host : peer0.org1.example.com
111
+ Port : 7051
85
112
86
- # ID to load the MSP definition as.
87
- ID : DEFAULT
113
+ - &Org2
114
+ Name : Organization2
115
+ ID : Org2
116
+ MSPDir : ./peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp
117
+ AdminPrincipal : Role.MEMBER
118
+ AnchorPeers :
119
+ - Host : peer0.org2.example.com
120
+ Port : 7051
88
121
89
- # MSPDir is the filesystem path which contains the MSP configuration.
90
- MSPDir : msp
122
+ - &ExampleCom
123
+ Name : ExampleCom
124
+ ID : example.com
125
+ MSPDir : ./ordererOrganizations/example.com/msp
91
126
92
- # AdminPrincipal dictates the type of principal used for an
93
- # organization's Admins policy. Today, only the values of Role.ADMIN and
94
- # Role.MEMBER are accepted, which indicates a principal of role type
95
- # ADMIN and role type MEMBER respectively.
96
- AdminPrincipal : Role.ADMIN
127
+ - &Org1ExampleCom
128
+ Name : Org1ExampleCom
129
+ ID : org1.example.com
130
+ MSPDir : ./peerOrganizations/org1.example.com/msp
131
+ AnchorPeers :
132
+ - Host : peer0.org1.example.com
133
+ Port : 7051
97
134
135
+ - &Org2ExampleCom
136
+ Name : Org2ExampleCom
137
+ ID : org2.example.com
138
+ MSPDir : ./peerOrganizations/org2.example.com/msp
98
139
AnchorPeers :
99
- # AnchorPeers defines the location of peers which can be used for
100
- # cross-org gossip communication. Note, this value is only encoded
101
- # in the genesis block in the Application section context.
102
- - Host : 127.0.0.1
140
+ - Host : peer0.org2.example.com
103
141
Port : 7051
104
142
105
143
# ###############################################################################
@@ -117,7 +155,7 @@ Orderer: &OrdererDefaults
117
155
OrdererType : solo
118
156
119
157
Addresses :
120
- - 127.0.0.1 :7050
158
+ - orderer.example.com :7050
121
159
122
160
# Batch Timeout: The amount of time to wait before creating a batch.
123
161
BatchTimeout : 2s
0 commit comments