Skip to content

the custom_web_site::delete action does not remove apache2 from all supported platforms #10

@rmiesen

Description

@rmiesen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions