membership_service_provider_local – Construct a set of membership service provider directories
Synopsis
Gather information about all organizations
Create a directory for each organization named by the msp_id.
Create an msp folder for each msp to store the identity
Parameters
- api_endpoint (required)
The URL for the the Fabric operations console.
Type: str- api_authtype (required)
basic- Authenticate to the 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 the Fabric operations console.
Type: str- api_secret
The API secret for the the Fabric operations console.
Only required when api_authtype is
basic.Type: str- operation (required)
create- Create an organizations directory with the MSPs for all organizationsType: str- organization_dir
Directory used for creating local MSPs for all organizations.
Default is organizations.
Type: str- wallet
Directory used for storing the admin certficates from the console wallet.
Default is wallet.
Type: str- wait_timeout
The timeout, in seconds, to wait until the certificate authority is available.
Type: intDefault value:60
Examples
- name: Create the local msp for all organizations
hyperledger.fabric_ansible_collection.membership_service_provider_local:
api_endpoint: https://console.example.org:32000
api_authtype: basic
api_key: xxxxxxxx
api_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
operation: "create"
Return Values
- exists
True if the process succeeds and creates the organizations directory.
Returned: alwaysType: boolean