Adding a new organization in Hyperledger Fabric¶
To add a new organization a fully configured Fabric network must be present already, i.e. a Fabric network which has Orderers, Peers, Channels (with all Peers already in the channels). The corresponding crypto materials should also be present in their respective Hashicorp Vault.
NOTE: Addition of a new organization has been tested on an existing network which is created by Bevel. Networks created using other methods may be suitable but this has not been tested by Bevel team.
Modifying Configuration File¶
Refer this guide for details on editing the configuration file.
While modifying the configuration file(
network.yaml) for adding new organization, all the existing organizations should have
org_status tag as
existing and the new organization should have
org_status tag as
network: channels: - channel: .. .. participants: - organization: .. .. org_status: new # new for new organization(s) - organization: .. .. org_status: existing # existing for old organization(s)
network: organizations: - organization: .. .. org_status: new # new for new organization(s) - organization: .. .. org_status: existing # existing for old organization(s)
network.yaml file should contain the specific
network.organization details along with the orderer information.
For reference, see
network-fabric-add-organization.yaml file here.
The add-new-organization.yaml playbook is used to add a new organization to the existing network. This can be done using the following command
ansible-playbook platforms/shared/configuration/add-new-organization.yaml --extra-vars "@path-to-network.yaml"
NOTE: Make sure that the
org_status label was set as
new when the network is deployed for the first time. If you have additional applications, please deploy them as well.