github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/test/feature/configs/configtx.yaml (about) 1 # Copyright IBM Corp. All Rights Reserved. 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 # 5 --- 6 ################################################################################ 7 # 8 # Profiles 9 # 10 # - Different configuration profiles may be encoded here to be specified 11 # as parameters to the configtxgen tool. The profiles which specify consortiums 12 # are to be used for generating the orderer genesis block. With the correct 13 # consortium members defined in the orderer genesis block, channel creation 14 # requests may be generated with only the org member names and a consortium name 15 # 16 ################################################################################ 17 Profiles: 18 19 # SampleInsecureSolo defines a configuration which uses the Solo orderer, 20 # contains no MSP definitions, and allows all transactions and channel 21 # creation requests for the consortium SampleConsortium. 22 SampleInsecureSolo: 23 Orderer: 24 <<: *OrdererDefaults 25 Organizations: 26 - *ExampleCom 27 Consortiums: 28 SampleConsortium: 29 Organizations: 30 - *Org1ExampleCom 31 - *Org2ExampleCom 32 33 # SampleInsecureKafka defines a configuration that differs from the 34 # SampleInsecureSolo one only in that is uses the Kafka-based orderer. 35 SampleInsecureKafka: 36 Orderer: 37 <<: *OrdererDefaults 38 OrdererType: kafka 39 Addresses: 40 - orderer0.example.com:7050 41 - orderer1.example.com:7050 42 - orderer2.example.com:7050 43 Organizations: 44 - *ExampleCom 45 Application: 46 <<: *ApplicationDefaults 47 Organizations: 48 - *ExampleCom 49 Consortiums: 50 SampleConsortium: 51 Organizations: 52 - *ExampleCom 53 - *Org1ExampleCom 54 - *Org2ExampleCom 55 56 # SampleSingleMSPSolo defines a configuration which uses the Solo orderer, 57 # and contains a single MSP definition (the MSP sampleconfig). 58 # The Consortium SampleConsortium has only a single member, SampleOrg 59 SampleSingleMSPSolo: 60 Orderer: 61 <<: *OrdererDefaults 62 Organizations: 63 - *ExampleCom 64 Application: 65 <<: *ApplicationDefaults 66 Organizations: 67 - *ExampleCom 68 Consortiums: 69 SampleConsortium: 70 Organizations: 71 - *ExampleCom 72 - *Org1ExampleCom 73 - *Org2ExampleCom 74 75 # SampleEmptyInsecureChannel defines a channel with no members 76 # and therefore no access control 77 SampleEmptyInsecureChannel: 78 Consortium: SampleConsortium 79 Application: 80 Organizations: 81 - *ExampleCom 82 83 # SysTestChannel defines a channel for use with the System Test Orgs 84 SysTestChannel: 85 Consortium: SampleConsortium 86 Application: 87 <<: *ApplicationDefaults 88 Organizations: 89 - *Org1ExampleCom 90 - *Org2ExampleCom 91 92 # SampleSingleMSPChannel defines a channel with only the sample org as a 93 # member. It is designed to be used in conjunction with SampleSingleMSPSolo 94 # and SampleSingleMSPKafka orderer profiles 95 SampleSingleMSPChannel: 96 Consortium: SampleConsortium 97 Application: 98 <<: *ApplicationDefaults 99 Organizations: 100 - *Org1ExampleCom 101 - *Org2ExampleCom 102 103 ################################################################################ 104 # 105 # Section: Organizations 106 # 107 # - This section defines the different organizational identities which will 108 # be referenced later in the configuration. 109 # 110 ################################################################################ 111 Organizations: 112 113 - &Org1 114 Name: Organization1 115 ID: Org1 116 MSPDir: ./peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp 117 AdminPrincipal: Role.ADMIN 118 AnchorPeers: 119 - Host: peer0.org1.example.com 120 Port: 7051 121 122 - &Org2 123 Name: Organization2 124 ID: Org2 125 MSPDir: ./peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp 126 AdminPrincipal: Role.MEMBER 127 AnchorPeers: 128 - Host: peer0.org2.example.com 129 Port: 7051 130 131 - &ExampleCom 132 Name: ExampleCom 133 ID: example.com 134 AdminPrincipal: Role.ADMIN 135 MSPDir: ./ordererOrganizations/example.com/msp 136 137 - &Org1ExampleCom 138 Name: Org1ExampleCom 139 ID: org1.example.com 140 MSPDir: ./peerOrganizations/org1.example.com/msp 141 AdminPrincipal: Role.ADMIN 142 AnchorPeers: 143 - Host: peer0.org1.example.com 144 Port: 7051 145 146 - &Org2ExampleCom 147 Name: Org2ExampleCom 148 ID: org2.example.com 149 MSPDir: ./peerOrganizations/org2.example.com/msp 150 AdminPrincipal: Role.ADMIN 151 AnchorPeers: 152 - Host: peer0.org2.example.com 153 Port: 7051 154 155 ################################################################################ 156 # 157 # SECTION: Orderer 158 # 159 # - This section defines the values to encode into a config transaction or 160 # genesis block for orderer related parameters. 161 # 162 ################################################################################ 163 Orderer: &OrdererDefaults 164 165 # Orderer Type: The orderer implementation to start. 166 # Available types are "solo" and "kafka". 167 OrdererType: solo 168 169 Addresses: 170 - orderer0.example.com:7050 171 172 # Batch Timeout: The amount of time to wait before creating a batch. 173 BatchTimeout: 2s 174 175 # Batch Size: Controls the number of messages batched into a block. 176 BatchSize: 177 178 # Max Message Count: The maximum number of messages to permit in a 179 # batch. 180 MaxMessageCount: 10 181 182 # Absolute Max Bytes: The absolute maximum number of bytes allowed for 183 # the serialized messages in a batch. If the "kafka" OrdererType is 184 # selected, set 'message.max.bytes' and 'replica.fetch.max.bytes' on the 185 # Kafka brokers to a value that is larger than this one. 186 AbsoluteMaxBytes: 98 MB 187 188 # Preferred Max Bytes: The preferred maximum number of bytes allowed for 189 # the serialized messages in a batch. A message larger than the 190 # preferred max bytes will result in a batch larger than preferred max 191 # bytes. 192 PreferredMaxBytes: 512 KB 193 194 # Max Channels is the maximum number of channels to allow on the ordering 195 # network. When set to 0, this implies no maximum number of channels. 196 MaxChannels: 0 197 198 Kafka: 199 # Brokers: A list of Kafka brokers to which the orderer connects. 200 # NOTE: Use IP:port notation 201 Brokers: 202 - kafka0:9092 203 - kafka1:9092 204 - kafka2:9092 205 - kafka3:9092 206 207 # Organizations is the list of orgs which are defined as participants on 208 # the orderer side of the network. 209 Organizations: 210 211 ################################################################################ 212 # 213 # SECTION: Application 214 # 215 # - This section defines the values to encode into a config transaction or 216 # genesis block for application related parameters. 217 # 218 ################################################################################ 219 Application: &ApplicationDefaults 220 221 # Organizations is the list of orgs which are defined as participants on 222 # the application side of the network. 223 Organizations: