146b00efa7
Previously we mounted /etc/timezone if the kolla_base_distro is debian or ubuntu. This would fail prechecks if debian or ubuntu images were deployed on CentOS. While this is not a supported combination, for correctness we should fix the condition to reference the host OS rather than the container OS, since that is where the /etc/timezone file is located. Change-Id: Ifc252ae793e6974356fcdca810b373f362d24ba5 Closes-Bug: #1882553
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 ansible_os_family == 'Debian' else '' }}"
|
|
- "zookeeper:/var/lib/zookeeper/data"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
|
|
zookeeper_extra_volumes: "{{ default_extra_volumes }}"
|