From 3a9b7e8346106227502da5a669898efd1d2713b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 2 Dec 2021 12:52:10 +0100 Subject: [PATCH] consul: provide URLs for WebSocket and RPC ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- tasks/consul.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tasks/consul.yml b/tasks/consul.yml index 9b62446..3643ceb 100644 --- a/tasks/consul.yml +++ b/tasks/consul.yml @@ -9,8 +9,6 @@ port: '{{ geth_port }}' address: '{{ ansible_host }}' meta: - env: '{{ env }}' - stage: '{{ stage }}' node_addr: '{{ node_info.json.result.id }}' node_enode: '{{ node_info.json.result.enode }}' checks: @@ -21,10 +19,9 @@ - name: '{{ geth_cont_name }}-rpc' tags: '{{ geth_consul_tags + ["rpc"] }}' port: '{{ geth_rpc_port }}' - address: '{{ ansible_local.wireguard.vpn_ip }}' + address: '{{ ansible_local.wireguard.address }}' meta: - env: '{{ env }}' - stage: '{{ stage }}' + url: 'http://{{ ansible_local.wireguard.address }}:{{ geth_rpc_port }}' checks: - id: '{{ geth_cont_name }}-rpc-status' type: 'script' @@ -35,10 +32,9 @@ - name: '{{ geth_cont_name }}-ws' tags: '{{ geth_consul_tags + ["websocket"] }}' port: '{{ geth_websocket_port }}' - address: '{{ ansible_local.wireguard.vpn_ip }}' + address: '{{ ansible_local.wireguard.address }}' meta: - env: '{{ env }}' - stage: '{{ stage }}' + url: 'ws://{{ ansible_local.wireguard.address }}:{{ geth_websocket_port }}' checks: - id: '{{ geth_cont_name }}-ws-status' name: 'Geth WebSocket API'