instack-undercloud/elements/undercloud-install/pre-install.d/01-iptables
2014-02-13 07:57:57 -05:00

13 lines
338 B
Bash
Executable File

#!/bin/bash
set -eux
# Needed for our iptables rules
yum -y erase firewalld
install-packages iptables-services
# This does not happen automatically, but is required in the systemd service
# file for iptables: ConditionPathExists=/etc/sysconfig/iptables
touch /etc/sysconfig/iptables
os-svc-enable -n iptables
os-svc-restart -n iptables