consul: add consul interval, timeout, disabled vars
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
a10542e515
commit
1ec3d72aae
|
@ -86,6 +86,12 @@ beacon_node_mem_reserve: '{{ (ansible_memtotal_mb * 0.4) | int }}'
|
|||
beacon_node_consul_service_name: 'beacon-node'
|
||||
beacon_node_consul_service_file_name: '{{ beacon_node_service_name | replace("-", "_") }}'
|
||||
beacon_node_consul_metrics_service_name: '{{ beacon_node_consul_service_name }}-metrics'
|
||||
beacon_node_consul_check_disabled: false
|
||||
beacon_node_consul_check_interval: '60s'
|
||||
beacon_node_consul_check_timeout: '5s'
|
||||
beacon_node_consul_success_before_passing: 0
|
||||
beacon_node_consul_failures_before_warning: 1
|
||||
beacon_node_consul_failures_before_critical: 2
|
||||
|
||||
# WebSocket or HTTP URLs for execution layet Engine API
|
||||
beacon_node_exec_layer_urls: []
|
||||
|
|
|
@ -2,7 +2,13 @@
|
|||
- name: 'Consul service definition - {{ beacon_node_service_name }}'
|
||||
include_role: name=infra-role-consul-service
|
||||
vars:
|
||||
consul_config_name: '{{ beacon_node_consul_service_file_name }}'
|
||||
consul_config_name: '{{ beacon_node_consul_service_file_name }}'
|
||||
consul_default_check_disabled: '{{ beacon_node_consul_check_disabled }}'
|
||||
consul_default_check_interval: '{{ beacon_node_consul_check_interval }}'
|
||||
consul_default_check_timeout: '{{ beacon_node_consul_check_timeout }}'
|
||||
consul_default_success_before_passing: '{{ beacon_node_consul_success_before_passing }}'
|
||||
consul_default_failures_before_warning: '{{ beacon_node_consul_failures_before_warning }}'
|
||||
consul_default_failures_before_critical: '{{ beacon_node_consul_failures_before_critical }}'
|
||||
consul_services:
|
||||
- id: '{{ beacon_node_service_name }}'
|
||||
name: '{{ beacon_node_consul_service_name }}'
|
||||
|
|
Loading…
Reference in New Issue