NewsBlur/ansible/roles/elasticsearch/templates/consul_service.json
2024-03-29 10:31:41 -07:00

19 lines
481 B
JSON

{
"service": {
{% if not elasticsearch_secondary %}
"name": "db-elasticsearch",
{% else %}
"name": "db-elasticsearch-staging",
{% endif %}
"tags": [
"db"
],
"port": 9200,
"checks": [{
"id": "es-ping",
"http": "http://{{ ansible_host }}:5579/db_check/elasticsearch?consul=1",
"interval": "15s",
"failures_before_critical": 4
}]
}
}