install iptables in ironic-inspector container
Change-Id: I5c153b367ef21eb76bc3fbe8bd724c71aa251f3c Closes-bug: #1626539
This commit is contained in:
parent
326327acba
commit
40ed2c46cd
@ -9,12 +9,21 @@ MAINTAINER {{ maintainer }}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||
{% set ironic_inspector_packages = ['openstack-ironic-inspector'] %}
|
||||
{% elif base_distro in ['ubuntu'] %}
|
||||
{% set ironic_inspector_packages = ['ironic-inspector'] %}
|
||||
{% set ironic_inspector_packages = [
|
||||
'ironic-inspector',
|
||||
'iptables'
|
||||
] %}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.install_packages(ironic_inspector_packages | customizable("packages")) }}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
{% if base_distro in ['ubuntu'] %}
|
||||
{% set ironic_inspector_packages = ['iptables'] %}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.install_packages(ironic_inspector_packages | customizable("packages")) }}
|
||||
|
||||
ADD ironic-inspector-archive /ironic-inspector-source
|
||||
RUN ln -s ironic-inspector-source/* ironic-inspector \
|
||||
&& mv /etc/ironic /etc/ironic-inspector \
|
||||
|
Loading…
Reference in New Issue
Block a user