While I was going through the Configure Apache web server on Linux module on http://learn.chef.io, I noticed that the :delete action in resources/site.rb hard-codes the package name of apache2:
action :delete do
package 'httpd' do
action :delete
end
end
In doing so, (1) the apache2 package will not be removed on the Ubuntu platform and (2) the :delete action might cause a chef run to fail on Ubuntu, depending on how the package resource responds to attempts to uninstall a package that doesn't even exist in repos known to the OS.