diff options
author | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2019-01-18 17:11:13 +0530 |
---|---|---|
committer | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2019-01-18 18:42:41 +0530 |
commit | 7c00ecf30ea22d67d10e5c848a8c36c50ab31a05 (patch) | |
tree | 53d102f3fcf9eecde1220f79eacbea9d14dc13fe /kitchen-tests/cookbooks | |
parent | 2f7ad6baf98f1999faa49f5218552911105e0380 (diff) | |
download | chef-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.rb | 8 |
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 |