Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disable cleanup attribute name changed to enable_rules_cleanup and bo…

…olean value used. Per pull request comment: Technicolor-Portico/AFW@61aa399#commitcomment-3282978.
  • Loading branch information...
commit 01df9d4280175c481f3ea16ae371a593e8c4c86e 1 parent 61aa399
@radekg radekg authored
Showing with 4 additions and 2 deletions.
  1. +1 −1  README.md
  2. +2 −0  attributes/default.rb
  3. +1 −1  recipes/default.rb
View
2  README.md
@@ -205,7 +205,7 @@ external tool perhaps.
To disable automatic cleanup simply set this on the node:
```
-node['afw']['disable_cleanup'] = "the value does not matter"
+node['afw']['enable_rules_cleanup'] = false
```
**Please remember:** You will have to remove unwanted rules manually.
View
2  attributes/default.rb
@@ -22,6 +22,8 @@
#default['afw']['ruby_source'] = "package"
#default['afw']['ruby_source'] = "none"
+default['afw']['enable_rules_cleanup'] = true
+
case platform
when "centos","redhat","fedora"
set['afw']['dnsruby_package_name'] = "rubygem-dnsruby"
View
2  recipes/default.rb
@@ -100,7 +100,7 @@ class Chef::Recipe
node.set['afw']['chains'] = {}
node.set['afw']['tables'] = {}
end
- only_if { not node['afw'].has_key?('disable_cleanup') }
+ only_if { node['afw']['enable_rules_cleanup'] == true }
end
execute 'restore firewall' do
Please sign in to comment.
Something went wrong with that request. Please try again.