28dbde6add
This change enables the use of Docker healthchecks for kibana services. Implements: blueprint container-health-check Change-Id: If7525e193c245435410b4071aed6d3b566424219
67 lines
2.5 KiB
YAML
67 lines
2.5 KiB
YAML
---
|
|
project_name: "kibana"
|
|
|
|
kibana_services:
|
|
kibana:
|
|
container_name: "kibana"
|
|
image: "{{ kibana_image_full }}"
|
|
enabled: true
|
|
group: "kibana"
|
|
volumes: "{{ kibana_default_volumes + kibana_extra_volumes }}"
|
|
dimensions: "{{ kibana_dimensions }}"
|
|
healthcheck: "{{ kibana_healthcheck }}"
|
|
haproxy:
|
|
kibana:
|
|
enabled: "{{ enable_kibana }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ kibana_server_port }}"
|
|
auth_user: "{{ kibana_user }}"
|
|
auth_pass: "{{ kibana_password }}"
|
|
kibana_external:
|
|
enabled: "{{ enable_kibana }}"
|
|
mode: "http"
|
|
external: true
|
|
port: "{{ kibana_server_port }}"
|
|
auth_user: "{{ kibana_user }}"
|
|
auth_pass: "{{ kibana_password }}"
|
|
|
|
|
|
####################
|
|
# Kibana
|
|
####################
|
|
kibana_default_app_id: "discover"
|
|
kibana_elasticsearch_request_timeout: 300000
|
|
kibana_elasticsearch_shard_timeout: 0
|
|
kibana_elasticsearch_ssl_verify: true
|
|
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
kibana_install_type: "{{ kolla_install_type }}"
|
|
kibana_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kibana_install_type }}-kibana"
|
|
kibana_tag: "{{ openstack_tag }}"
|
|
kibana_image_full: "{{ kibana_image }}:{{ kibana_tag }}"
|
|
kibana_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
kibana_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
kibana_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
kibana_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
kibana_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
kibana_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ kibana_server_port }}"]
|
|
kibana_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
kibana_healthcheck:
|
|
interval: "{{ kibana_healthcheck_interval }}"
|
|
retries: "{{ kibana_healthcheck_retries }}"
|
|
start_period: "{{ kibana_healthcheck_start_period }}"
|
|
test: "{% if kibana_enable_healthchecks | bool %}{{ kibana_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
timeout: "{{ kibana_healthcheck_timeout }}"
|
|
|
|
kibana_default_volumes:
|
|
- "{{ node_config_directory }}/kibana/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
kibana_extra_volumes: "{{ default_extra_volumes }}"
|