add a separate rpc service definition
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5161f2337d
commit
a72680e561
|
@ -61,6 +61,7 @@ geth_public_addr: '{{ ansible_host }}'
|
|||
|
||||
# Consul config
|
||||
geth_consul_address: '{{ ansible_host }}'
|
||||
geth_consul_rpc_address: '{{ ansible_local.tinc.vpn_ip }}'
|
||||
geth_consul_enabled: true
|
||||
geth_consul_default_tags:
|
||||
- geth
|
||||
|
|
|
@ -27,6 +27,17 @@
|
|||
stage: '{{ stage }}'
|
||||
node_addr: '{{ node_info.json.result.id }}'
|
||||
node_enode: '{{ node_info.json.result.enode }}'
|
||||
checks:
|
||||
- id: '{{ geth_cont_name }}-status'
|
||||
type: tcp
|
||||
tcp: '127.0.0.1:{{ geth_port }}'
|
||||
- name: '{{ geth_cont_name }}-rpc'
|
||||
tags: '{{ geth_consul_tags + ["rpc"] }}'
|
||||
port: '{{ geth_rpc_port }}'
|
||||
address: '{{ geth_consul_rpc_address }}'
|
||||
meta:
|
||||
env: '{{ env }}'
|
||||
stage: '{{ stage }}'
|
||||
checks:
|
||||
- id: '{{ geth_cont_name }}-rpc-status'
|
||||
type: script
|
||||
|
|
Loading…
Reference in New Issue