make location of rpc.sh wrapper customizable

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-05-11 12:17:34 +02:00
parent 5ad36567e8
commit c3b51f0799
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

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