make location of rpc.sh wrapper customizable
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5ad36567e8
commit
c3b51f0799
|
@ -41,6 +41,8 @@ geth_rpc_vhosts:
|
||||||
- '{{ hostname }}'
|
- '{{ hostname }}'
|
||||||
- '{{ hostname }}.tinc'
|
- '{{ hostname }}.tinc'
|
||||||
- '{{ ansible_local.tinc.vpn_ip }}'
|
- '{{ ansible_local.tinc.vpn_ip }}'
|
||||||
|
# Wrapper for easier RPC usage
|
||||||
|
get_rpc_wrapper: '{{ geth_service_path }}/rpc.sh'
|
||||||
# Web Sockets API
|
# Web Sockets API
|
||||||
geth_websocket_enabled: true
|
geth_websocket_enabled: true
|
||||||
geth_websocket_port: '{{ geth_rpc_port + 1 | int }}'
|
geth_websocket_port: '{{ geth_rpc_port + 1 | int }}'
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
checks:
|
checks:
|
||||||
- id: '{{ geth_cont_name }}-rpc-status'
|
- id: '{{ geth_cont_name }}-rpc-status'
|
||||||
type: 'script'
|
type: 'script'
|
||||||
script: '{{ geth_service_path }}/rpc.sh eth_syncing'
|
script: '{{ geth_rpc_wrapper }} eth_syncing'
|
||||||
timeout: '5s'
|
timeout: '5s'
|
||||||
|
|
||||||
- name: '{{ geth_cont_name }}-ws'
|
- name: '{{ geth_cont_name }}-ws'
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
- name: Create Geth JSON RPC wrapper script
|
- name: Create Geth JSON RPC wrapper script
|
||||||
template:
|
template:
|
||||||
src: 'rpc.sh.j2'
|
src: 'rpc.sh.j2'
|
||||||
dest: '{{ geth_service_path }}/rpc.sh'
|
dest: '{{ geth_rpc_wrapper }}'
|
||||||
owner: 'root'
|
owner: 'root'
|
||||||
group: 'docker'
|
group: 'docker'
|
||||||
mode: 0750
|
mode: 0750
|
||||||
|
|
Loading…
Reference in New Issue