fix miner configuration

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-03-18 22:19:55 +01:00
parent 0aa31c9c1b
commit 348df7d675
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
5 changed files with 13 additions and 13 deletions

View File

@ -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

View File

@ -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

View File

@ -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 }}/'

View File

@ -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'