infra-role-beacon-node/tasks/consul.yml

28 lines
1.0 KiB
YAML

---
- name: 'Consul service definition - {{ beacon_node_cont_name }}'
include_role: name=consul-service
vars:
consul_config_name: '{{ beacon_node_cont_name | replace("-", "_") }}'
consul_services:
- id: '{{ beacon_node_cont_name }}'
name: 'beacon-node'
port: '{{ beacon_node_listening_port }}'
address: '{{ beacon_node_public_address }}'
tags: ['{{ env }}.{{ stage }}', 'beacon', 'nimbus']
#checks:
# - name: 'beacon-node-health'
# type: 'tcp'
# tcp: 'localhost:{{ beacon_node_listening_port }}'
- id: '{{ beacon_node_cont_name }}-metrics'
name: 'beacon-node-metrics'
port: '{{ beacon_node_metrics_port }}'
address: '{{ ansible_local.tinc.vpn_ip }}'
tags: ['{{ env }}.{{ stage }}', 'beacon', 'nimbus', 'metrics']
meta:
container: '{{ beacon_node_cont_name }}'
#checks:
# - name: 'beacon-node-metrics-health'
# type: 'http'
# http: 'http://localhost:{{ beacon_node_metrics_port }}/metrics'