chef-boneyard / build-essential

Development repository for build-essential Chef Cookbook
https://supermarket.chef.io/cookbooks/build-essential
Apache License 2.0
116 stars 181 forks source link

Uninstall Resource Action #132

Open dmlb2000 opened 7 years ago

dmlb2000 commented 7 years ago

Cookbook version

Latest

Chef-client version

Latest

Platform Details

Any

Scenario:

I would like to clean up the build-essential packages after using them to build codes. I would also like to make sure that compilers and other build tools are not present across my chef managed infrastructure.

Steps to Reproduce:

There's a couple of workflows that would get solved by this let me go through a couple I mentioned above.

Keep compilers around just for the build of the app

  1. Deploy application from SCM
  2. Install build tools to build the application
  3. Setup application to be usable (doesn't require build tools anymore)
  4. Remove compilers used to build the application

Verify that compilers are not present across my infrastructure

  1. Remove compilers used during development as they are not needed when going to production.

Expected Result:

Set an uninstall action for build-essential so it will remove (the high level stuff) what it installed.

Actual Result:

I end up having to implement all the logic in the resource but for each platform with package removals and keeping them inline with updates to required packages... :(