mirror of
https://github.com/status-im/infra-role-geth.git
synced 2025-01-09 19:55:41 +00:00
consul: provide URLs for WebSocket and RPC ports
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
47b3de7059
commit
3a9b7e8346
@ -9,8 +9,6 @@
|
|||||||
port: '{{ geth_port }}'
|
port: '{{ geth_port }}'
|
||||||
address: '{{ ansible_host }}'
|
address: '{{ ansible_host }}'
|
||||||
meta:
|
meta:
|
||||||
env: '{{ env }}'
|
|
||||||
stage: '{{ stage }}'
|
|
||||||
node_addr: '{{ node_info.json.result.id }}'
|
node_addr: '{{ node_info.json.result.id }}'
|
||||||
node_enode: '{{ node_info.json.result.enode }}'
|
node_enode: '{{ node_info.json.result.enode }}'
|
||||||
checks:
|
checks:
|
||||||
@ -21,10 +19,9 @@
|
|||||||
- name: '{{ geth_cont_name }}-rpc'
|
- name: '{{ geth_cont_name }}-rpc'
|
||||||
tags: '{{ geth_consul_tags + ["rpc"] }}'
|
tags: '{{ geth_consul_tags + ["rpc"] }}'
|
||||||
port: '{{ geth_rpc_port }}'
|
port: '{{ geth_rpc_port }}'
|
||||||
address: '{{ ansible_local.wireguard.vpn_ip }}'
|
address: '{{ ansible_local.wireguard.address }}'
|
||||||
meta:
|
meta:
|
||||||
env: '{{ env }}'
|
url: 'http://{{ ansible_local.wireguard.address }}:{{ geth_rpc_port }}'
|
||||||
stage: '{{ stage }}'
|
|
||||||
checks:
|
checks:
|
||||||
- id: '{{ geth_cont_name }}-rpc-status'
|
- id: '{{ geth_cont_name }}-rpc-status'
|
||||||
type: 'script'
|
type: 'script'
|
||||||
@ -35,10 +32,9 @@
|
|||||||
- name: '{{ geth_cont_name }}-ws'
|
- name: '{{ geth_cont_name }}-ws'
|
||||||
tags: '{{ geth_consul_tags + ["websocket"] }}'
|
tags: '{{ geth_consul_tags + ["websocket"] }}'
|
||||||
port: '{{ geth_websocket_port }}'
|
port: '{{ geth_websocket_port }}'
|
||||||
address: '{{ ansible_local.wireguard.vpn_ip }}'
|
address: '{{ ansible_local.wireguard.address }}'
|
||||||
meta:
|
meta:
|
||||||
env: '{{ env }}'
|
url: 'ws://{{ ansible_local.wireguard.address }}:{{ geth_websocket_port }}'
|
||||||
stage: '{{ stage }}'
|
|
||||||
checks:
|
checks:
|
||||||
- id: '{{ geth_cont_name }}-ws-status'
|
- id: '{{ geth_cont_name }}-ws-status'
|
||||||
name: 'Geth WebSocket API'
|
name: 'Geth WebSocket API'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user