kolla/docker/multipathd/Dockerfile.j2
Cédric Jeanneret 74d8e65040 Do not load dm-multipath module from the container
The module must be loaded from the host directly in order
to avoid any SELinux issues.

There are examples in kolla-ansible and tripleo-heat-templates:
- https://review.openstack.org/#/c/605624/
- https://review.openstack.org/#/c/605450/

Change-Id: Ieebb2564e816d83ec4111c211677f0a44488a224
Related-Bug: 1794550
2018-11-07 16:42:53 +01:00

18 lines
633 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block multipathd_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set multipathd_packages = ['device-mapper-multipath'] %}
{% elif base_distro in ['debian', 'ubuntu'] %}
{% set multipathd_packages = ['multipath-tools'] %}
{% endif %}
{{ macros.install_packages(multipathd_packages | customizable("packages")) }}
{% block multipathd_footer %}{% endblock %}
{% block footer %}{% endblock %}