- From: "Ryan Creasey" <
>
- To: <
>
- Cc: <
>
- Subject: [chef] Re: triggering undeploy action
- Date: Mon, 23 Aug 2010 09:08:18 -0700
- Domainkey-signature: s=igncom; d=ign.com; c=nofws; q=dns; h=Received:Received:Received:References:Message-ID:From:To: In-Reply-To:Content-Type:Thread-Topic:Thread-Index: Content-Transfer-Encoding:MIME-Version:Subject:Date:Cc: Return-Path:X-OriginalArrivalTime; b=z0PXOd70l4YUH8CPRiRSz5Ukeg7MgouIn5a4m4RzyyGRqjmyrpSweV2Z YKiS0/5EnOrbbe41xRpJ/N4fjHCL6djin4yySnl7PCvw1O3KYLnW/dCiN EO4b0EvR6iToxML;
Not in the way you would imagine a normal package manager to do an uninstall.
You would have to write an explicit cookbook::uninstall recipe to handle the
removal of a recipe. Basically have it undo everything that your install
recipe would do; there is no facility to "rewind" the actions your Resources
do automatically.
I thought it would be a cool idea to add this on the Provider level and it
seems possible on the abstract level, but when you sit down to implement
it... it gets complicated really fast.
- Ryan
On Aug 23, 2010, at 5:28 AM, Boris Shulman
<
>
wrote:
>
Hello,
>
>
I wonder if it is possible to trigger an undeploy action when removing
>
role/recipe from a node?
>
trigger
>
>
Boris.
>
Archive powered by MHonArc 2.6.16.