Skip to content

Commit

Permalink
Disable cleanup attribute name changed to enable_rules_cleanup and bo…
Browse files Browse the repository at this point in the history
  • Loading branch information
radekg committed May 24, 2013
1 parent 61aa399 commit 01df9d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions attributes/default.rb
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion recipes/default.rb
Expand Up @@ -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
Expand Down

0 comments on commit 01df9d4

Please sign in to comment.