Skip to content
Snippets Groups Projects
Commit 8c2ecf00 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Customizations for iscsid"

parents a0707a52 e418a04e
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 \ {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
iscsi-initiator-utils \ {% set iscsid_packages = [
targetcli \ 'iscsi-initiator-utils',
python-rtslib \ 'targetcli',
&& yum clean all 'python-rtslib'
] %}
{% elif base_distro in ['ubuntu', 'debian'] %} {% elif base_distro in ['ubuntu', 'debian'] %}
{% set iscsid_packages = [
RUN apt-get -y install --no-install-recommends \ 'open-iscsi',
open-iscsi \ 'targetcli',
targetcli \ 'python-rtslib'
python-rtslib \ ] %}
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(iscsid_packages | customizable("packages")) }}
{% block iscsid_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