add Policies to cofigtx.yaml

This commit is contained in:
tarekbadrshalaan 2018-08-09 22:32:11 +02:00
parent ed81d7b9b1
commit 591afc81ef

View file

@ -27,6 +27,20 @@ Organizations:
# MSPDir is the filesystem path which contains the MSP configuration # MSPDir is the filesystem path which contains the MSP configuration
MSPDir: crypto-config/ordererOrganizations/example.com/msp MSPDir: crypto-config/ordererOrganizations/example.com/msp
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "ANY Admins"
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
- &Org1 - &Org1
# DefaultOrg defines the organization which is used in the sampleconfig # DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment # of the fabric.git development environment
@ -43,6 +57,19 @@ Organizations:
# encoded in the genesis block in the Application section context # encoded in the genesis block in the Application section context
- Host: peer0.org1.example.com - Host: peer0.org1.example.com
Port: 7051 Port: 7051
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "ANY Admins"
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
- &Org2 - &Org2
# DefaultOrg defines the organization which is used in the sampleconfig # DefaultOrg defines the organization which is used in the sampleconfig
@ -61,6 +88,20 @@ Organizations:
- Host: peer0.org2.example.com - Host: peer0.org2.example.com
Port: 7051 Port: 7051
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "ANY Admins"
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
################################################################################ ################################################################################
# #
# SECTION: Capabilities # SECTION: Capabilities
@ -124,6 +165,25 @@ Application: &ApplicationDefaults
# the application side of the network # the application side of the network
Organizations: Organizations:
# Policies defines the set of policies at this level of the config tree
# For Orderer policies, their canonical path is
# /Channel/Orderer/<PolicyName>
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "ANY Admins"
# BlockValidation specifies what signatures must be included in the block
# from the orderer for the peer to validate it.
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
################################################################################ ################################################################################
# #
# SECTION: Orderer # SECTION: Orderer
@ -169,6 +229,26 @@ Orderer: &OrdererDefaults
# the orderer side of the network # the orderer side of the network
Organizations: Organizations:
# Policies defines the set of policies at this level of the config tree
# For Orderer policies, their canonical path is
# /Channel/Orderer/<PolicyName>
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "ANY Admins"
# BlockValidation specifies what signatures must be included in the block
# from the orderer for the peer to validate it.
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
################################################################################ ################################################################################
# #
# Profile # Profile
@ -193,6 +273,22 @@ Profiles:
Organizations: Organizations:
- *Org1 - *Org1
- *Org2 - *Org2
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "ANY Admins"
# BlockValidation specifies what signatures must be included in the block
# from the orderer for the peer to validate it.
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
TwoOrgsChannel: TwoOrgsChannel:
Consortium: SampleConsortium Consortium: SampleConsortium
Application: Application: