Skip to content

Commit

Permalink
Use the newly built in sysctl resource
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Mar 22, 2018
1 parent 67fbd47 commit 10c7942
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/chef/resource/swap_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ class SwapFile < Chef::Resource
end
end
if new_resource.swappiness
include_recipe "sysctl::default"

sysctl_param "vm.swappiness" do
declare_resource(:sysctl, "vm.swappiness") do
value new_resource.swappiness
end
end
Expand Down

0 comments on commit 10c7942

Please sign in to comment.