fix miner configuration
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
0aa31c9c1b
commit
348df7d675
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
- name: Configure faucet proxy
|
||||
hosts: faucet-master
|
||||
roles:
|
||||
- role: origin-cert
|
||||
tags: origin-cert
|
||||
- role: faucet-proxy
|
||||
tags: faucet-proxy
|
||||
#- name: Configure faucet proxy
|
||||
# hosts: faucet-master
|
||||
# roles:
|
||||
# - role: origin-cert
|
||||
# tags: origin-cert
|
||||
# - role: faucet-proxy
|
||||
# tags: faucet-proxy
|
||||
|
||||
- name: Configure faucet miners
|
||||
hosts: faucet-miners
|
||||
|
|
|
@ -6,6 +6,7 @@ miner_base_account_addr: ~
|
|||
miner_cont_tag: v1.7.2
|
||||
miner_cont_image: 'ethereum/client-go:{{ miner_cont_tag }}'
|
||||
miner_cont_name: 'geth-miner'
|
||||
miner_cont_vol: '/docker/{{ miner_cont_name }}'
|
||||
|
||||
miner_main_port: 30303
|
||||
miner_rpc_port: 8545
|
||||
|
|
|
@ -11,4 +11,4 @@
|
|||
checks:
|
||||
- id: geth-miner-rpc-health
|
||||
type: script
|
||||
script: 'curl -s -X POST -H Content-type:application/json --data {"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1} http://localhost:{{ rpc_port }}/'
|
||||
script: 'curl -s -X POST -H Content-type:application/json --data {"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1} http://localhost:{{ miner_rpc_port }}/'
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
- name: Create container folders
|
||||
file:
|
||||
path: '{{ miner_vol }}/data'
|
||||
owner: dockeremap
|
||||
path: '{{ miner_cont_vol }}/data'
|
||||
state: directory
|
||||
owner: dockremap
|
||||
group: docker
|
||||
|
||||
- name: Create geth miner
|
||||
|
@ -22,7 +23,6 @@
|
|||
--{{ miner_network | mandatory }}
|
||||
--etherbase="{{ miner_base_account_addr | mandatory }}"
|
||||
--datadir=/data
|
||||
--password=/conf/account-pass
|
||||
--shh
|
||||
--shh.pow={{ miner_shh_pow }}
|
||||
--rpc
|
||||
|
@ -35,5 +35,4 @@
|
|||
--mine
|
||||
--miner.threads="{{ ansible_processor_vcpus }}"
|
||||
volumes:
|
||||
-v /home/geth/data: \
|
||||
- '{{ miner_vol }}/data:/data/:rw'
|
||||
- '{{ miner_cont_vol }}/data:/data:rw'
|
||||
|
|
Loading…
Reference in New Issue