]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/incron/recipes/default.rb
Don't use only_if on firewall_rule as it's a definition
[chef.git] / cookbooks / incron / recipes / default.rb
index d4a17617935a5294df64dfdab51a91f8040e38e0..5423bc77a448f6ece1100a9d47ed0d3e84afcfe0 100644 (file)
 package "incron"
 
 service "incron" do
-  action [ :enable, :start ]
+  action [:enable, :start]
   supports :status => true, :reload => true, :restart => true
 end
 
 incrontabs = {}
 
-node[:incron].each do |name,details|
+node[:incron].each_value do |details|
   user = details[:user]
   path = details[:path]
   mask = details[:events].join(",")
@@ -37,7 +37,7 @@ node[:incron].each do |name,details|
   incrontabs[user].push("#{path} #{mask} #{command}")
 end
 
-incrontabs.each do |user,lines|
+incrontabs.each do |user, lines|
   file "/var/spool/incron/#{user}" do
     owner user
     group "incron"