install ironic-inspector during image build

Add installation of ironic-inspector package
on binary ubuntu or via pip on any source type of installations.

Change-Id: I5946369b6424c32e0cbf00a6590d41eb85b1de18
Closes-bug: #1565936
This commit is contained in:
Waldemar Znoinski 2016-09-12 16:48:06 +00:00
parent f9956f2e10
commit 6664a8d31d

View File

@ -8,10 +8,15 @@ MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %} {% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% set ironic_inspector_packages = ['openstack-ironic-inspector'] %} {% set ironic_inspector_packages = ['openstack-ironic-inspector'] %}
{% elif base_distro in ['ubuntu'] %}
{% set ironic_base_packages = ['ironic-inspector'] %}
{% endif %} {% endif %}
{{ macros.install_packages(ironic_inspector_packages | customizable("packages")) }} {{ macros.install_packages(ironic_inspector_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
RUN /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt \
ironic-inspector
{% endif %} {% endif %}
{% block ironic_inspector_footer %}{% endblock %} {% block ironic_inspector_footer %}{% endblock %}