Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Uninstall Resource Action #132

Open
dmlb2000 opened this issue Nov 2, 2017 · 0 comments
Open

Uninstall Resource Action #132

dmlb2000 opened this issue Nov 2, 2017 · 0 comments

Comments

@dmlb2000
Copy link

dmlb2000 commented Nov 2, 2017

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... :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant