channel_members – Manage anchor peers for a channel
Synopsis
Manage anchor peers for the whole channel.
Migrate anchor peer addresses to the newer open source format
This module works with the IBM Support for Hyperledger Fabric software or the Hyperledger Fabric Open Source Stack running in a Red Hat OpenShift or Kubernetes cluster.
Parameters
- api_endpoint (required)
The URL for the Fabric operations console.
Type: str- api_authtype (required)
basic- Authenticate to the Fabric operations console using basic authentication. You must provide both a valid API key using api_key and API secret using api_secret.Type: str- api_key (required)
The API key for the Fabric operations console.
Type: str- api_secret
The API secret for the Fabric operations console.
Only required when api_authtype is
basic.Type: str- api_timeout
The timeout, in seconds, to use when interacting with the Fabric operations console.
Type: intDefault value:60- path (required)
Path to current the channel configuration file.
This file can be fetched by using the ERROR while parsing: While parsing “M(channel_config)” at index 39: Module name “channel_config” is not a FQCN module.
This file will be updated in place. You will need to keep a copy of the original file for computing the configuration update.
Type: str- operation (required)
migrate_addresses_to_os- Convert the anchor peer addresses in the channel to open source standardsType: str
Examples
- name: Add the organization to the channel
hyperledger.fabric_ansible_collection.channel_member:
state: present
api_endpoint: https://console.example.org:32000
api_authtype: basic
api_key: xxxxxxxx
api_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
path: updated_config.bin
operation: 'migrate_addresses_to_os'