add a separate rpc service definition

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-06 11:41:21 +02:00
parent 5161f2337d
commit a72680e561
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 12 additions and 0 deletions

View File

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

View File

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