4b5df0d866
Some services look for /etc/timezone on Debian/Ubuntu, so we should introduce it to the containers. In addition, added prechecks for /etc/localtime and /etc/timezone. Closes-Bug: #1821592 Change-Id: I9fef14643d1bcc7eee9547eb87fa1fb436d8a6b3
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
---
|
|
project_name: "zookeeper"
|
|
|
|
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 }}"
|
|
|
|
####################
|
|
# 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_default_volumes:
|
|
- "{{ node_config_directory }}/zookeeper/:{{ container_config_directory }}/"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if kolla_base_distro in ['debian', 'ubuntu'] else '' }}"
|
|
- "zookeeper:/var/lib/zookeeper/data"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
zookeeper_extra_volumes: "{{ default_extra_volumes }}"
|