]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
use iptables-save in the persistent rules example
authorChristopher Grim <christopher.grim@gmail.com>
Sat, 27 Aug 2011 01:52:44 +0000 (22:52 -0300)
committerChristopher Grim <christopher.grim@gmail.com>
Sat, 27 Aug 2011 01:52:44 +0000 (22:52 -0300)
README.markdown

index 4a851afc98ab7582fc5858fa34547dccb4669246..fa2b7cb1ce6cee1871afe6b623c2c07e05ccf87c 100644 (file)
@@ -59,8 +59,8 @@ You can make firewall rules persistent with the following iptables example:
 
     exec { "persist-firewall":
       command => $operatingsystem ? {
-        "debian" => "/sbin/iptables > /etc/iptables/rules.v4",
-        /(RedHat|CentOS)/ => "/sbin/iptables > /etc/sysconfig/iptables",
+        "debian" => "/sbin/iptables-save > /etc/iptables/rules.v4",
+        /(RedHat|CentOS)/ => "/sbin/iptables-save > /etc/sysconfig/iptables",
       }
       refreshonly => true,
     }