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

22 lines
1.1 KiB
YAML
Raw Normal View History

---
- 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 }}'
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 }}'
type: 'script'
script: '/usr/bin/systemctl is-active {{ portal_bridge_service_name }}'
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 }}'