consul: fix ids and names to be more consistent

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-06-03 11:16:07 +02:00
parent 3de59d6ae7
commit 5f65cfeefe
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
2 changed files with 7 additions and 3 deletions

View File

@ -107,6 +107,7 @@ geth_public_addr: '{{ ansible_host }}'
# Consul config
geth_consul_enabled: true
geth_consul_service_name: 'geth'
geth_consul_default_tags:
- geth
- '{{ env }}.{{ stage }}'

View File

@ -2,7 +2,8 @@
- name: Geth | Consul | Define services
set_fact:
consul_services:
- name: '{{ geth_cont_name }}'
- id: '{{ geth_cont_name }}'
name: '{{ geth_consul_service_name }}'
tags: '{{ geth_consul_tags }}'
port: '{{ geth_port }}'
address: '{{ ansible_host }}'
@ -14,7 +15,8 @@
type: tcp
tcp: '127.0.0.1:{{ geth_port }}'
- name: '{{ geth_cont_name }}-rpc'
- id: '{{ geth_cont_name }}-rpc'
name: '{{ geth_consul_service_name }}-rpc'
tags: '{{ geth_consul_tags + ["rpc"] }}'
port: '{{ geth_rpc_port }}'
address: '{{ ansible_local.wireguard.address }}'
@ -27,7 +29,8 @@
timeout: '5s'
failures_before_critical: 3
- name: '{{ geth_cont_name }}-ws'
- id: '{{ geth_cont_name }}-ws'
name: '{{ geth_consul_service_name }}-ws'
tags: '{{ geth_consul_tags + ["websocket"] }}'
port: '{{ geth_websocket_port }}'
address: '{{ ansible_local.wireguard.address }}'