fb915b5a91
On RedHat family distro, util-linux provides the hexdump. On Debian family distro, bsdmainutils provides the hexdump. Change-Id: If762f570639782ca477ae4697f354d88c992613b Closes-Bug: #1627755
60 lines
1.6 KiB
Django/Jinja
60 lines
1.6 KiB
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}ironic-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block ironic_conductor_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
{% set ironic_conductor_packages = [
|
|
'util-linux',
|
|
'openstack-ironic-conductor',
|
|
'qemu-img',
|
|
'ipmitool',
|
|
'parted',
|
|
'gdisk',
|
|
'psmisc'
|
|
] %}
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
{% set ironic_conductor_packages = [
|
|
'bsdmainutils',
|
|
'ironic-conductor',
|
|
'qemu-utils',
|
|
'ipmitool',
|
|
'gdisk',
|
|
'psmisc',
|
|
'parted'
|
|
] %}
|
|
{% endif %}
|
|
{% elif install_type == 'source' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
{% set ironic_conductor_packages = [
|
|
'util-linux',
|
|
'qemu-img',
|
|
'ipmitool',
|
|
'parted',
|
|
'gdisk',
|
|
'psmisc',
|
|
'fuse'
|
|
] %}
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
{% set ironic_conductor_packages = [
|
|
'bsdmainutils',
|
|
'qemu-utils',
|
|
'ipmitool',
|
|
'gdisk',
|
|
'psmisc',
|
|
'parted'
|
|
] %}
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(ironic_conductor_packages | customizable("packages")) }}
|
|
|
|
{% block ironic_conductor_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|
|
|
|
USER ironic
|