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
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
---
|
|
project_name: "chrony"
|
|
|
|
chrony_services:
|
|
chrony:
|
|
container_name: "chrony"
|
|
group: "chrony"
|
|
image: "{{ chrony_image_full }}"
|
|
enabled: True
|
|
privileged: True
|
|
volumes: "{{ chrony_default_volumes + chrony_extra_volumes }}"
|
|
dimensions: "{{ chrony_dimensions }}"
|
|
|
|
chrony_bindaddress: "{{ kolla_internal_vip_address }}"
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
chrony_install_type: "{{ kolla_install_type }}"
|
|
chrony_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ chrony_install_type }}-chrony"
|
|
chrony_tag: "{{ openstack_tag }}"
|
|
chrony_image_full: "{{ chrony_image }}:{{ chrony_tag }}"
|
|
|
|
chrony_dimensions: "{{ default_container_dimensions }}"
|
|
|
|
chrony_default_volumes:
|
|
- "{{ node_config_directory }}/chrony/:{{ 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"
|
|
chrony_extra_volumes: "{{ default_extra_volumes }}"
|