---
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_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/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_facts.os_family == 'Debian' else '' }}"
  - "/dev/:/dev/"
  - "/run/:/run/:shared"
  - "/lib/modules:/lib/modules:ro"
  - "/sys/kernel/config:/configfs"
multipathd_extra_volumes: "{{ default_extra_volumes }}"
