infra-role-portal-bridge/tasks/consul.yml

24 lines
1.2 KiB
YAML

---
- name: 'Create Consul service definition'
include_role: name=infra-role-consul-service
vars:
consul_config_name: '{{ portal_bridge_consul_service_file_name }}'
consul_services:
- id: '{{ portal_bridge_service_name }}'
name: '{{ portal_bridge_consul_service_name }}'
port: '{{ portal_bridge_rpc_port }}'
address: '{{ portal_bridge_rpc_address }}'
tags: ['{{ env }}.{{ stage }}', 'eth1', 'nimbus', 'portal', 'bridge']
checks:
- id: '{{ portal_bridge_consul_service_name }}-health'
name: '{{ portal_bridge_consul_service_name }}-health'
interval: '{{ portal_bridge_consul_check_interval }}'
timeout: '{{ portal_bridge_consul_check_timeout }}'
disabled: '{{ portal_bridge_consul_check_disabled }}'
tcp: 'localhost:{{ portal_bridge_rpc_address }}'
type: 'tcp'
success_before_passing: '{{ portal_bridge_consul_success_before_passing }}'
failures_before_warning: '{{ portal_bridge_consul_failures_before_warning }}'
failures_before_critical: '{{ portal_bridge_consul_failures_before_critical }}'