diff --git a/test/cookbooks/test/recipes/all-tables.rb b/test/cookbooks/test/recipes/all-tables.rb index 7aa3071..386729a 100644 --- a/test/cookbooks/test/recipes/all-tables.rb +++ b/test/cookbooks/test/recipes/all-tables.rb @@ -4,6 +4,16 @@ include_recipe '::centos-6-helper' if platform?('centos') && node['platform_version'].to_i == 6 iptables_packages 'install iptables' + +ruby_block 'test' do + block do + Chef::Log.warn(`/usr/sbin/netfilter-persistent start`) + Chef::Log.warn(`/sbin/iptables-restore < /etc/iptables/rules.v4`) + end + action :run + only_if { platform?('debian', 'ubuntu') } +end + iptables_service 'configure iptables services' do action %i(enable start)