定义一系列的组织结构,根据服务对象类型的不同,包括Orderer组织和普通的应用组织。
Orderer类型组织包括名称、ID、MSP文件路径、管理员策略等,应用类型组织还会配置锚点Peer信息。这些组织都会被Profiles部分引用使用。
Organizations:
# SampleOrg defines an MSP using the sampleconfig. It should never be used
# in production but may be used as a template for other definitions
- &OrdererOrg
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: OrdererOrg
# MSP的ID
ID: OrdererMSP
# MSP相关文件所在本地路径
MSPDir: crypto-config/ordererOrganizations/example.com/msp
AdminPricipal: Role.Admin # 组织管理员所需要的身份,可以为Role.Admin或Role.MEMBER
- &Org1
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org1MSP
# MSP的ID
ID: Org1MSP
# MSP相关文件所在本地路径
MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
AnchorPeers: #锚节点地址,用于夸组织的Gossip通信
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: peer0.org1.example.com
Port: 7051
- &Org2
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org2MSP
# MSP的ID
ID: Org2MSP
# MSP相关文件所在本地路径
MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
AnchorPeers: #锚节点地址,用于夸组织的Gossip通信
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: peer0.org2.example.com
Port: 7051