Skip to content

Commit c8fe094

Browse files
committed
debug
1 parent 79c8700 commit c8fe094

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/cookbooks/test/recipes/all-tables.rb

+10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
include_recipe '::centos-6-helper' if platform?('centos') && node['platform_version'].to_i == 6
55

66
iptables_packages 'install iptables'
7+
8+
ruby_block 'test' do
9+
block do
10+
Chef::Log.warn(`/usr/sbin/netfilter-persistent start`)
11+
Chef::Log.warn(`/sbin/iptables-restore < /etc/iptables/rules.v4`)
12+
end
13+
action :run
14+
only_if { platform?('debian', 'ubuntu') }
15+
end
16+
717
iptables_service 'configure iptables services' do
818
action %i(enable start)
919

0 commit comments

Comments
 (0)