- From: Alex Kiernan <
>
- To:
- Subject: [chef] Re: Re: Using report handlers to remove old files
- Date: Tue, 6 Sep 2011 19:06:08 +0100
So something like collect all the ones we've used in a global variable
and then clean up the rest at the end? Is there a way of hooking into
"the end" or should I just have a recipe I run last?
On Mon, Sep 5, 2011 at 6:58 PM, Adam Jacob
<
>
wrote:
>
I would just extend your tomcat installation cookbook to clean up the
>
old ones idempotently.
>
>
Adam
>
>
On Mon, Sep 5, 2011 at 5:27 AM, Alex Kiernan
>
<
>
>
wrote:
>
> We've accumulated a load of tomcat installations and having refactored
>
> our installations of it so it's now a single definition which installs
>
> the version of tomcat you asked for (so you drop it into the recipe
>
> you want it in) I now want to clean up all the unused ones.
>
>
>
> My thinking is to add a report handler which figures out which
>
> versions of tomcat we actually used in a run, drop that to a file
>
> somewhere locally and then use that file next time around to clean up
>
> all the dead ones...
>
>
>
> Or am I missing something and making this more work than needed!
>
>
>
> --
>
> Alex Kiernan
>
>
>
>
>
>
--
>
Opscode, Inc.
>
Adam Jacob, Chief Product Officer
>
T: (206) 619-7151 E:
>
>
--
Alex Kiernan
Archive powered by MHonArc 2.6.16.