X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b20599b6503be65674c3e420be6cca91b507ac0a..3e3fe7718ee69bb95908dbe474fb4b15d80d329a:/cookbooks/sysctl/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/sysctl/recipes/default.rb b/cookbooks/sysctl/recipes/default.rb index 920402a6e..562504835 100644 --- a/cookbooks/sysctl/recipes/default.rb +++ b/cookbooks/sysctl/recipes/default.rb @@ -41,8 +41,8 @@ template "/etc/sysctl.d/60-chef.conf" do end node[:sysctl].each_value do |group| - group[:parameters].each do |key,value| - sysctl_file = "/proc/sys/#{key.gsub('.', '/')}" + group[:parameters].each do |key, value| + sysctl_file = "/proc/sys/#{key.tr('.', '/')}" file sysctl_file do content "#{value}\n"