summaryrefslogtreecommitdiff
path: root/kitchen-tests/cookbooks
diff options
context:
space:
mode:
authorKapil Chouhan <kapil.chouhan@msystechnologies.com>2019-01-18 17:11:13 +0530
committerKapil Chouhan <kapil.chouhan@msystechnologies.com>2019-01-18 18:42:41 +0530
commit7c00ecf30ea22d67d10e5c848a8c36c50ab31a05 (patch)
tree53d102f3fcf9eecde1220f79eacbea9d14dc13fe /kitchen-tests/cookbooks
parent2f7ad6baf98f1999faa49f5218552911105e0380 (diff)
downloadchef-7c00ecf30ea22d67d10e5c848a8c36c50ab31a05.tar.gz
Fix for Sysctl doesn't work when key has a dot(.) in the name
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Diffstat (limited to 'kitchen-tests/cookbooks')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/tests.rb8
1 files changed, 8 insertions, 0 deletions
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