end
Dir.glob("/var/cache/chef/chef_*.deb").each do |deb|
- if deb != "/var/cache/chef/#{chef_package}"
- file deb do
- action :delete
- backup false
- end
+ next if deb == "/var/cache/chef/#{chef_package}"
+
+ file deb do
+ action :delete
+ backup false
end
end
mode 0644
end
-directory "/etc/chef/ohai" do
+directory node[:ohai][:plugin_dir] do
owner "root"
group "root"
mode 0755