Save iptables after flushing during cloud-init

The iptables rules should be saved after being flushed as part of the
cloud-init process. If the reboot plugin is used, the default CentOS
rules are loaded on boot because we are not saving the cleared set of
rules. This can cause some network configurations to break.
Ubuntu is not impacted as they do not have any 'default' rules.

Change-Id: I49842cd833a736f318dd237f07be2267dbfb27ab
Closes-Bug: 1459733
This commit is contained in:
Alex Schultz 2015-05-28 15:20:10 -05:00
parent 8693edb138
commit e7ffd040eb

View File

@ -44,6 +44,7 @@ runcmd:
{% endif %}
- iptables -t filter -F INPUT
- iptables -t filter -F FORWARD
- service iptables save
# that module's missing in 0.6.3, but existent for >= 0.7.3
write_files: