/
21-commit-chaincode.yml
29 lines (29 loc) · 1.03 KB
/
21-commit-chaincode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# SPDX-License-Identifier: Apache-2.0
#
---
- name: Commit chaincode
hosts: localhost
vars_files:
- common-vars.yml
- org1-vars.yml
tasks:
- name: Commit the chaincode on the channel
ibm.blockchain_platform.committed_chaincode:
api_endpoint: "{{ api_endpoint }}"
api_authtype: "{{ api_authtype }}"
api_key: "{{ api_key }}"
api_secret: "{{ api_secret | default(omit) }}"
api_token_endpoint: "{{ api_token_endpoint | default(omit) }}"
peer: "{{ org1_peer_name }}"
identity: "{{ org1_name }} Admin.json"
msp_id: "{{ org1_msp_id }}"
channel: "{{ channel_name }}"
organizations:
- "{{ org1_name }}"
- "{{ org2_name }}"
name: "{{ smart_contract_name }}"
version: "{{ smart_contract_version }}"
sequence: "{{ smart_contract_sequence }}"
endorsement_policy: "{{ smart_contract_endorsement_policy | default(omit) }}"
collections_config: "{{ smart_contract_collections_file | default(omit) }}"