X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5c5ffa21ddcce610d5bbf7b3885b08497e85dac4..025f05041c746a1602697d2edce62ed75eac6df9:/cookbooks/sysctl/recipes/default.rb diff --git a/cookbooks/sysctl/recipes/default.rb b/cookbooks/sysctl/recipes/default.rb index 02f753580..d2797a289 100644 --- a/cookbooks/sysctl/recipes/default.rb +++ b/cookbooks/sysctl/recipes/default.rb @@ -37,7 +37,7 @@ template "/etc/sysctl.d/60-chef.conf" do owner "root" group "root" mode 0644 - notifies :run, resources(:execute => "sysctl") + notifies :run, "execute[sysctl]" end node[:sysctl].each_value do |group| @@ -46,6 +46,7 @@ node[:sysctl].each_value do |group| file sysctl_file do content "#{value}\n" + atomic_update false only_if { File.exists?(sysctl_file) } end end