IBM-Blockchain / ansible-collection

Ansible collection for building Hyperledger Fabric networks
Apache License 2.0
43 stars 38 forks source link

Extend channel_config module with ACL support #552

Closed sstone1 closed 3 years ago

sstone1 commented 3 years ago

Extend the channel_config module so that you can specify ACLs at channel creation time.

Example usage:

- name: Create the configuration for a new channel
  ibm.blockchain_platform.channel_config:
    api_endpoint: https://ibp-console.example.org:32000
    api_authtype: basic
    api_key: xxxxxxxx
    api_secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    operation: create
    name: mychannel
    path: channel_config_update.bin
    organizations:
      - Org1
    policies:
      Admins: admins-policy.json
      Readers: readers-policy.json
      Writers: writers-policy.json
    acls:
      lscc/ChaincodeExists: /Channel/Application/Admins

Signed-off-by: Simon Stone sstone1@uk.ibm.com