2019-05-10 16:36:17 +02:00
|
|
|
---
|
|
|
|
- name: Create Consul service definition
|
|
|
|
include_role: name=consul-service
|
|
|
|
vars:
|
|
|
|
consul_config_name: '{{ geth_expo_cont_name | replace("-", "_") }}'
|
|
|
|
consul_services:
|
2019-07-23 22:46:32 -04:00
|
|
|
- id: '{{ geth_expo_consul_id }}'
|
|
|
|
name: '{{ geth_expo_consul_name }}'
|
2019-05-10 16:36:17 +02:00
|
|
|
port: '{{ geth_expo_cont_port }}'
|
|
|
|
address: '{{ geth_expo_consul_addr }}'
|
|
|
|
tags: '{{ geth_expo_consul_tags }}'
|
|
|
|
meta:
|
2019-05-10 16:39:32 +02:00
|
|
|
container: '{{ geth_source_cont_name | mandatory }}'
|
2019-05-10 16:36:17 +02:00
|
|
|
checks:
|
2019-05-10 18:16:46 +02:00
|
|
|
- id: '{{ geth_expo_consul_name }}-health'
|
2019-05-10 16:36:17 +02:00
|
|
|
name: 'geth-exporter healthcheck'
|
|
|
|
type: http
|
|
|
|
http: 'http://localhost:{{ geth_expo_cont_port }}/health'
|