]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
purge clarifications
authorMorgan Haskel <morgan@puppetlabs.com>
Tue, 31 Mar 2015 15:26:06 +0000 (11:26 -0400)
committerMorgan Haskel <morgan@puppetlabs.com>
Tue, 31 Mar 2015 15:26:06 +0000 (11:26 -0400)
README.markdown

index 42eab8e903df4c08051342e5a3a2b809223d9364..91fb5cb030c98589e57056c0f0a511d3e0db2023 100644 (file)
@@ -135,7 +135,7 @@ Rules are persisted automatically between reboots, although there are known issu
     purge => true
   }
   ```
-  **Note** - If there are unmanaged rules in unmanaged chains it will take two Puppet runs before the firewall chain is purged.
+  **Note** - If there are unmanaged rules in unmanaged chains it will take two Puppet runs before the firewall chain is purged. This is different than the `purge` parameter available in `firewallchain`.
 
 2.)  Use the following code to set up the default parameters for all of the firewall rules you will establish later. These defaults will ensure that the `pre` and `post` classes are run in the correct order to avoid locking you out of your box during the first Puppet run.
 
@@ -721,6 +721,14 @@ firewallchain { 'INPUT:filter:IPv4':
 
 * `purge`: Purge unmanaged firewall rules in this chain. Valid values are 'false', 'true'.
 
+**Note** This `purge` is purging unmanaged rules in a firewall chain, not unmanaged firewall chains. To purge unmanaged firewall chains, use the following instead.
+
+```puppet
+resources { 'firewallchain':
+  purge => true
+}
+```
+
 ###Fact: ip6tables_version
 
 A Facter fact that can be used to determine what the default version of ip6tables is for your operating system/distribution.