From 7c00ecf30ea22d67d10e5c848a8c36c50ab31a05 Mon Sep 17 00:00:00 2001 From: Kapil Chouhan Date: Fri, 18 Jan 2019 17:11:13 +0530 Subject: Fix for Sysctl doesn't work when key has a dot(.) in the name Signed-off-by: Kapil Chouhan --- kitchen-tests/cookbooks/end_to_end/recipes/tests.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kitchen-tests/cookbooks') diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb b/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb index 1c9171b9f3..b53fc39e17 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb @@ -19,3 +19,11 @@ end file "/tmp/chef-test-\xFDmlaut" do content "testing illegal UTF-8 char in the filename" end + +node["network"]["interfaces"].each do |interface_data| + interface = interface_data[0] + sysctl_param "net/ipv4/conf/#{interface}/rp_filter" do + value 0 + ignore_failure true + end +end -- cgit v1.2.1