We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79c8700 commit c8fe094Copy full SHA for c8fe094
test/cookbooks/test/recipes/all-tables.rb
@@ -4,6 +4,16 @@
4
include_recipe '::centos-6-helper' if platform?('centos') && node['platform_version'].to_i == 6
5
6
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
17
iptables_service 'configure iptables services' do
18
action %i(enable start)
19
0 commit comments