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
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
---
|
|
project_name: "multipathd"
|
|
|
|
multipathd_services:
|
|
multipathd:
|
|
container_name: multipathd
|
|
group: multipathd
|
|
enabled: true
|
|
ipc_mode: "host"
|
|
privileged: True
|
|
image: "{{ multipathd_image_full }}"
|
|
volumes: "{{ multipathd_default_volumes + multipathd_extra_volumes }}"
|
|
|
|
|
|
####################
|
|
# Docker
|
|
####################
|
|
multipathd_install_type: "{{ kolla_install_type }}"
|
|
multipathd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ multipathd_install_type }}-multipathd"
|
|
multipathd_tag: "{{ openstack_tag }}"
|
|
multipathd_image_full: "{{ multipathd_image }}:{{ multipathd_tag }}"
|
|
|
|
multipathd_default_volumes:
|
|
- "{{ node_config_directory }}/multipathd/:{{ container_config_directory }}/:ro"
|
|
- "kolla_logs:/var/log/kolla/"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ '/etc/timezone:/etc/timezone:ro' if ansible_os_family == 'Debian' else '' }}"
|
|
- "/dev/:/dev/"
|
|
- "/run/:/run/:shared"
|
|
- "/sys/fs/cgroup:/sys/fs/cgroup:ro"
|
|
- "/lib/modules:/lib/modules:ro"
|
|
- "/sys/kernel/config:/configfs"
|
|
- "cinder:/var/lib/cinder"
|
|
- "iscsi_info:/etc/iscsi"
|
|
multipathd_extra_volumes: "{{ default_extra_volumes }}"
|