Skip to content

Commit 775b65e

Browse files
author
douyali
committed
Install iptables in ironic-inspector container
The centos environment ironic-inspector use iptables filter need install iptables rpm package. Change-Id: I67081a37977dd6de37a67fcd012e002f2e46743f Closes-bug: #1906635 (cherry picked from commit ad1b8e2)
1 parent 4a114b5 commit 775b65e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/ironic-inspector/Dockerfile.j2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
1212
{% if install_type == 'binary' %}
1313
{% if base_package_type == 'rpm' %}
1414
{% set ironic_inspector_packages = [
15+
'iptables',
1516
'openstack-ironic-inspector',
1617
'openstack-ironic-inspector-dnsmasq'
1718
] %}
@@ -25,7 +26,9 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
2526
{{ macros.install_packages(ironic_inspector_packages | customizable("packages")) }}
2627

2728
{% elif install_type == 'source' %}
28-
{% if base_package_type == 'deb' %}
29+
{% if base_package_type == 'rpm' %}
30+
{% set ironic_inspector_packages = ['iptables'] %}
31+
{% elif base_package_type == 'deb' %}
2932
{% set ironic_inspector_packages = ['iptables'] %}
3033
{% endif %}
3134

0 commit comments

Comments
 (0)