56fc74f231
Role vars have a higher precedence than role defaults. This allows to import default vars from another role via vars_files without overriding project_name (see related bug for details). Change-Id: I3d919736e53d6f3e1a70d1267cf42c8d2c0ad221 Related-Bug: #1951785
51 lines
2.1 KiB
YAML
51 lines
2.1 KiB
YAML
---
|
|
zookeeper_services:
|
|
zookeeper:
|
|
container_name: zookeeper
|
|
group: zookeeper
|
|
enabled: true
|
|
image: "{{ zookeeper_image_full }}"
|
|
environment:
|
|
ZOO_LOG_DIR: /var/log/kolla/zookeeper
|
|
ZOO_LOG4J_PROP: "{{ zookeeper_log_settings }}"
|
|
volumes: "{{ zookeeper_default_volumes + zookeeper_extra_volumes }}"
|
|
dimensions: "{{ zookeeper_dimensions }}"
|
|
healthcheck: "{{ zookeeper_healthcheck }}"
|
|
|
|
|
|
####################
|
|
# Zookeeper
|
|
####################
|
|
zookeeper_log_settings: 'INFO,ROLLINGFILE'
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
zookeeper_install_type: "{{ kolla_install_type }}"
|
|
zookeeper_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ zookeeper_install_type }}-zookeeper"
|
|
zookeeper_tag: "{{ openstack_tag }}"
|
|
zookeeper_image_full: "{{ zookeeper_image }}:{{ zookeeper_tag }}"
|
|
zookeeper_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
zookeeper_enable_healthchecks: "{{ enable_container_healthchecks }}"
|
|
zookeeper_healthcheck_interval: "{{ default_container_healthcheck_interval }}"
|
|
zookeeper_healthcheck_retries: "{{ default_container_healthcheck_retries }}"
|
|
zookeeper_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}"
|
|
zookeeper_healthcheck_test: ["CMD-SHELL", "healthcheck_listen java {{ zookeeper_client_port }}"]
|
|
zookeeper_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}"
|
|
zookeeper_healthcheck:
|
|
interval: "{{ zookeeper_healthcheck_interval }}"
|
|
retries: "{{ zookeeper_healthcheck_retries }}"
|
|
start_period: "{{ zookeeper_healthcheck_start_period }}"
|
|
test: "{% if zookeeper_enable_healthchecks | bool %}{{ zookeeper_healthcheck_test }}{% else %}NONE{% endif %}"
|
|
timeout: "{{ zookeeper_healthcheck_timeout }}"
|
|
|
|
zookeeper_default_volumes:
|
|
- "{{ node_config_directory }}/zookeeper/:{{ container_config_directory }}/"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_facts.os_family == 'Debian' else '' }}"
|
|
- "zookeeper:/var/lib/zookeeper/data"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
zookeeper_extra_volumes: "{{ default_extra_volumes }}"
|