Skip to content
Snippets Groups Projects
Commit 2e0571ae authored by Shaun Smekel's avatar Shaun Smekel Committed by Jeffrey Zhang
Browse files

Customizations for Multipathd

This patchset contains customization of Dockerfile of the Multipathd
container.

Change-Id: Ibf68b538eaa3cdd0fd6f190f234db845459192ec
Partially-implements: blueprint third-party-plugin-support
parent 595fa575
No related branches found
No related tags found
No related merge requests found
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% import "macros.j2" as macros with context %}
RUN yum -y install \
device-mapper-multipath \
&& yum clean all
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% set multipathd_packages = ['device-mapper-multipath'] %}
{% elif base_distro in ['ubuntu', 'debian'] %} {% elif base_distro in ['ubuntu', 'debian'] %}
{% set multipathd_packages = ['multipath-tools'] %}
RUN apt-get -y install --no-install-recommends \
multipath-tools \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(multipathd_packages | customizable("packages")) }}
{% block multipathd_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment