add geth_expo_consul_id for specifying consul service id

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-07-23 22:46:32 -04:00
parent 9846d4b264
commit 5f3011243a
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ geth_expo_cont_addr: '0.0.0.0'
geth_expo_cont_port: 9200
# consul catalog data
geth_expo_consul_id: 'geth-exporter'
geth_expo_consul_name: 'geth-exporter'
geth_expo_consul_addr: '{{ ansible_local.tinc.vpn_ip }}'
geth_expo_consul_extra_tag: '{{ geth_expo_cont_name }}'

View File

@ -4,7 +4,8 @@
vars:
consul_config_name: '{{ geth_expo_cont_name | replace("-", "_") }}'
consul_services:
- name: '{{ geth_expo_consul_name }}'
- id: '{{ geth_expo_consul_id }}'
name: '{{ geth_expo_consul_name }}'
port: '{{ geth_expo_cont_port }}'
address: '{{ geth_expo_consul_addr }}'
tags: '{{ geth_expo_consul_tags }}'