forked from minhlh/Ansible-Fabric-Starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhosts_raft.yml
executable file
·52 lines (52 loc) · 2.42 KB
/
hosts_raft.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
41
42
43
44
45
46
47
48
49
50
51
52
---
all:
hosts:
localhost: # localhost connection parameters, used for storing configuration while transferring it between nodes
ansible_connection: local
vars:
global_domain: example.com
global_chaincode_lang: golang # Programming language of chaincode
global_chaincode_version: 1.0 # Your chaincode version
global_channels:
- name: common # Channel name
particapants: # Organizations, should be included in channel
- org0
- org1
chaincode: # Chaincode params
name: chaincode
filename: chaincode
version: "{{ global_chaincode_version }}"
policy: ""
init: '{"Args":["init","a","100","b","100"]}'
orderer_count: 2 # Amount of orderers in network
children:
nodes:
hosts:
org0.example.com: # Describes which containers will run on this node
node_roles:
- root_orderer # This node will be used to generate crypto-config for other orderers
- orderer # This node will host an orderer-service
- peer # This node will host peers and api containers for organization
- root_peer # This node will be used to create channels and instantiate chaincode
- explorer # This node will serve hyperledger fabric explorer
- monitoring # This node will serve hyperledger fabric monitoring
org: org0 # Organization name
org_id: 0
orderer_id: 0
ansible_host: 10.0.3.38 # Real ip address or domain name of the machine
ansible_user: ubuntu # User with sudo access
# ansible_private_key_file: ~/.ssh/id_rsa # Private key to identify ourselves
ansible_ssh_port: 22 # Specify ssh-port here, if case of it's not defaulted.
# Same structure for any other nodes
org1.example.com:
node_roles:
- orderer # This node will host an orderer-service
- peer # This node will host peers and api containers for organization
- explorer
org: org1
org_id: 1 # ID of orderer-service which is running on this host
orderer_id: 1 # ID of orderer-service which is running on this host
ansible_host: 10.0.3.236 # Real ip address or domain name of the machine
ansible_user: ubuntu # User with sudo access
# ansible_private_key_file: ~/.ssh/id_rsa # Private key to identify ourselves
ansible_ssh_port: 22