tripleo-image-elements/elements/iptables/install.d/01-iptables
Therese McHale 6dcd96a724 Disable save of iptables on package install
iptables rules should not be saved on install
of iptables-persistent as rules may leak from
your build environment into your vms.
Use DISTRO_NAME in this element.

Change-Id: I0d61c5453804ef8671ea91b2594f218958b5068f
2014-11-19 20:22:55 +00:00

13 lines
233 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
install-packages iptables
if [[ "ubuntu debian" =~ "$DISTRO_NAME" ]]; then
# Note in later versions will
# need netfilter-persistent package
install-packages iptables-persistent
fi