mirror of
https://github.com/status-im/infra-role-geth.git
synced 2025-02-19 15:24:30 +00:00
consul: add version to service metadata
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
53de8de6ec
commit
a2f2b10baa
@ -12,6 +12,7 @@
|
|||||||
meta:
|
meta:
|
||||||
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 }}'
|
||||||
|
version: '{{ geth_cont_tag | regex_replace("^v", "") }}'
|
||||||
checks:
|
checks:
|
||||||
- id: '{{ geth_cont_name }}-status'
|
- id: '{{ geth_cont_name }}-status'
|
||||||
type: tcp
|
type: tcp
|
||||||
@ -25,6 +26,7 @@
|
|||||||
disabled: '{{ not geth_rpc_enabled }}'
|
disabled: '{{ not geth_rpc_enabled }}'
|
||||||
meta:
|
meta:
|
||||||
url: 'http://{{ geth_consul_advertised_address }}:{{ geth_rpc_port }}'
|
url: 'http://{{ geth_consul_advertised_address }}:{{ geth_rpc_port }}'
|
||||||
|
version: '{{ geth_cont_tag | regex_replace("^v", "") }}'
|
||||||
checks:
|
checks:
|
||||||
- id: '{{ geth_cont_name }}-rpc-status'
|
- id: '{{ geth_cont_name }}-rpc-status'
|
||||||
type: 'script'
|
type: 'script'
|
||||||
@ -40,6 +42,7 @@
|
|||||||
disabled: '{{ not geth_authrpc_enabled }}'
|
disabled: '{{ not geth_authrpc_enabled }}'
|
||||||
meta:
|
meta:
|
||||||
url: 'http://{{ geth_consul_advertised_address }}:{{ geth_authrpc_port }}'
|
url: 'http://{{ geth_consul_advertised_address }}:{{ geth_authrpc_port }}'
|
||||||
|
version: '{{ geth_cont_tag | regex_replace("^v", "") }}'
|
||||||
checks:
|
checks:
|
||||||
- id: '{{ geth_cont_name }}-authrpc-status'
|
- id: '{{ geth_cont_name }}-authrpc-status'
|
||||||
type: 'tcp'
|
type: 'tcp'
|
||||||
@ -54,6 +57,7 @@
|
|||||||
disabled: '{{ not geth_websocket_enabled }}'
|
disabled: '{{ not geth_websocket_enabled }}'
|
||||||
meta:
|
meta:
|
||||||
url: 'ws://{{ geth_consul_advertised_address }}:{{ geth_websocket_port }}'
|
url: 'ws://{{ geth_consul_advertised_address }}:{{ geth_websocket_port }}'
|
||||||
|
version: '{{ geth_cont_tag | regex_replace("^v", "") }}'
|
||||||
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