-
Notifications
You must be signed in to change notification settings - Fork 11
/
23-register-application.yml
40 lines (39 loc) · 1.6 KB
/
23-register-application.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
30
31
32
33
34
35
36
37
38
39
40
#
# SPDX-License-Identifier: Apache-2.0
#
---
- name: Register application
hosts: localhost
vars_files:
- common-vars.yml
- org2-vars.yml
tasks:
- name: Register a new identity
hyperledger.fabric_ansible_collection.registered_identity:
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) }}"
certificate_authority: "{{ org2_ca_name }}"
registrar: "{{ org2_ca_name }} Admin.json"
enrollment_id: "{{ application_enrollment_id }}"
enrollment_secret: "{{ application_enrollment_secret }}"
max_enrollments: "{{ application_max_enrollments }}"
type: "{{ application_enrollment_type }}"
attributes:
- name: "{{ smart_contract_name }}.admin"
value: "true"
- name: Create a connection profile
hyperledger.fabric_ansible_collection.connection_profile:
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) }}"
name: "{{ org2_name }} Gateway"
path: "{{ org2_name }} Gateway.json"
organization: "{{ org2_name }}"
certificate_authority: "{{ org2_ca_name }}"
peers:
- "{{ org2_peer_name }}"