From 5f3011243a54b38496663d1c9159b6ce412898ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 23 Jul 2019 22:46:32 -0400 Subject: [PATCH] add geth_expo_consul_id for specifying consul service id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- defaults/main.yml | 1 + tasks/consul.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 8c0c0c6..9984d59 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 }}' diff --git a/tasks/consul.yml b/tasks/consul.yml index 7581ed1..3f6e3e9 100644 --- a/tasks/consul.yml +++ b/tasks/consul.yml @@ -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 }}'