e1ec02eddf
This change replaces ElasticSearch with OpenSearch, and Kibana with OpenSearch Dashboards. It migrates the data from ElasticSearch to OpenSearch upon upgrade. No TLS support is in this patch (will be a followup). A replacement for ElasticSearch Curator will be added as a followup. Depends-On: https://review.opendev.org/c/openstack/kolla/+/830373 Co-authored-by: Doug Szumski <doug@stackhpc.com> Co-authored-by: Kyle Dean <kyle@stackhpc.com> Change-Id: Iab10ce7ea5d5f21a40b1f99b28e3290b7e9ce895
132 lines
6.0 KiB
YAML
132 lines
6.0 KiB
YAML
---
|
|
opensearch_services:
|
|
opensearch:
|
|
container_name: opensearch
|
|
group: opensearch
|
|
enabled: true
|
|
image: "{{ opensearch_image_full }}"
|
|
environment:
|
|
OPENSEARCH_JAVA_OPTS: "{{ opensearch_java_opts }}"
|
|
volumes: "{{ opensearch_default_volumes + opensearch_extra_volumes }}"
|
|
dimensions: "{{ opensearch_dimensions }}"
|
|
healthcheck: "{{ opensearch_healthcheck }}"
|
|
haproxy:
|
|
opensearch:
|
|
enabled: "{{ enable_opensearch }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ opensearch_port }}"
|
|
frontend_http_extra:
|
|
- "option dontlog-normal"
|
|
opensearch-dashboards:
|
|
container_name: opensearch_dashboards
|
|
group: opensearch-dashboards
|
|
enabled: "{{ enable_opensearch_dashboards }}"
|
|
environment:
|
|
OPENSEARCH_DASHBOARDS_SECURITY_PLUGIN: "False"
|
|
image: "{{ opensearch_dashboards_image_full }}"
|
|
volumes: "{{ opensearch_dashboards_default_volumes + opensearch_dashboards_extra_volumes }}"
|
|
dimensions: "{{ opensearch_dashboards_dimensions }}"
|
|
healthcheck: "{{ opensearch_dashboards_healthcheck }}"
|
|
haproxy:
|
|
opensearch-dashboards:
|
|
enabled: "{{ enable_opensearch_dashboards }}"
|
|
mode: "http"
|
|
external: false
|
|
port: "{{ opensearch_dashboards_port }}"
|
|
auth_user: "{{ opensearch_dashboards_user }}"
|
|
auth_pass: "{{ opensearch_dashboards_password }}"
|
|
opensearch_dashboards_external:
|
|
enabled: "{{ enable_opensearch_dashboards_external | bool }}"
|
|
mode: "http"
|
|
external: true
|
|
port: "{{ opensearch_dashboards_port_external }}"
|
|
auth_user: "{{ opensearch_dashboards_user }}"
|
|
auth_pass: "{{ opensearch_dashboards_password }}"
|
|
|
|
|
|
####################
|
|
# Opensearch
|
|
####################
|
|
|
|
# Register Opensearch internal endpoint in the Keystone service catalogue
|
|
opensearch_enable_keystone_registration: False
|
|
|
|
opensearch_cluster_name: "kolla_logging"
|
|
opensearch_heap_size: "1g"
|
|
opensearch_java_opts: "{% if opensearch_heap_size %}-Xms{{ opensearch_heap_size }} -Xmx{{ opensearch_heap_size }}{% endif %} -Dlog4j2.formatMsgNoLookups=true"
|
|
|
|
####################
|
|
# Keystone
|
|
####################
|
|
opensearch_openstack_auth: "{{ openstack_auth }}"
|
|
|
|
opensearch_ks_services:
|
|
- name: "opensearch"
|
|
type: "log-storage"
|
|
description: "Opensearch"
|
|
endpoints:
|
|
- {'interface': 'internal', 'url': '{{ opensearch_internal_endpoint }}'}
|
|
|
|
#######################
|
|
# OpenSearch Dashboards
|
|
#######################
|
|
opensearch_dashboards_default_app_id: "discover"
|
|
opensearch_dashboards_opensearch_request_timeout: 300000
|
|
opensearch_dashboards_opensearch_shard_timeout: 0
|
|
opensearch_dashboards_opensearch_ssl_verify: true
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
opensearch_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/opensearch"
|
|
opensearch_tag: "{{ openstack_tag }}"
|
|
opensearch_image_full: "{{ opensearch_image }}:{{ opensearch_tag }}"
|
|
|
|
opensearch_dashboards_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/opensearch-dashboards"
|
|
opensearch_dashboards_tag: "{{ openstack_tag }}"
|
|
opensearch_dashboards_image_full: "{{ opensearch_dashboards_image }}:{{ opensearch_dashboards_tag }}"
|
|
|
|
opensearch_dimensions: "{{ default_container_dimensions }}"
|
|
opensearch_dashboards_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
opensearch_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
opensearch_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
opensearch_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
opensearch_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
opensearch_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ opensearch_port }}"]
|
|
opensearch_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
opensearch_healthcheck:
|
|
interval: "{{ opensearch_healthcheck_interval }}"
|
|
retries: "{{ opensearch_healthcheck_retries }}"
|
|
start_period: "{{ opensearch_healthcheck_start_period }}"
|
|
test: "{% if opensearch_enable_healthchecks | bool %}{{ opensearch_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
timeout: "{{ opensearch_healthcheck_timeout }}"
|
|
opensearch_dashboards_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
opensearch_dashboards_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
opensearch_dashboards_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
opensearch_dashboards_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
opensearch_dashboards_healthcheck_test: ["CMD-SHELL", "healthcheck_curl http://{{ api_interface_address | put_address_in_context('url') }}:{{ opensearch_dashboards_port }}"]
|
|
opensearch_dashboards_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
opensearch_dashboards_healthcheck:
|
|
interval: "{{ opensearch_dashboards_healthcheck_interval }}"
|
|
retries: "{{ opensearch_dashboards_healthcheck_retries }}"
|
|
start_period: "{{ opensearch_dashboards_healthcheck_start_period }}"
|
|
test: "{% if opensearch_dashboards_enable_healthchecks | bool %}{{ opensearch_dashboards_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
timeout: "{{ opensearch_dashboards_healthcheck_timeout }}"
|
|
|
|
opensearch_default_volumes:
|
|
- "{{ node_config_directory }}/opensearch/:{{ container_config_directory }}/"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
|
- "{{ opensearch_datadir_volume }}:/var/lib/opensearch/data"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
opensearch_dashboards_default_volumes:
|
|
- "{{ node_config_directory }}/opensearch-dashboards/:{{ container_config_directory }}/:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
opensearch_extra_volumes: "{{ default_extra_volumes }}"
|
|
opensearch_dashboards_extra_volumes: "{{ default_extra_volumes }}"
|