[chef] Re: Thinking of writing my own windows tomcat cookbook


Chronological Thread 
  • From: Maven User < >
  • To: chef < >
  • Subject: [chef] Re: Thinking of writing my own windows tomcat cookbook
  • Date: Mon, 3 Oct 2011 12:18:44 -0400

Ok, now that I've worked through all of these, one question remains.

If I'm using chef to deploy a war, do I need to update the cookbook every time the war changes?

How do people typically control this kind of thing?


On Fri, Sep 30, 2011 at 10:25 AM, Maven User < "> > wrote:
Hi all -

I'm starting to drink more kool-aid but don't want to reinvent the wheel.

We have a several war projects we want to deploy to a windows server running tomcat.

So the order of operation is:

1 - Install Tomcat if it's not there
2 - it it was there shut it down
3 - archive previous wars
4 - put in new war
5 - tweak any configuration I need to (some may be INSIDE the war)
6 - start up tomcat

So far, I haven't seen a tomcat for windows cookbook.  Is it bad to include the binary of tomcat I want to install as part of the cookbook?  What about our wars, do they need to be in a cookbook which has recipes specific to our needs?

This feels kinda clunky (most likely because of my understanding of things, not chefs fault).

One final passing thought - there seem to be several ways to split up the dev/qa/stage/prod type configurations.  I can have an environments databag for dev/qa and an encrypted databag for stage/production.  But also, I could segregate via environments.  Either way, for sure, we'll have sensitive passwords that need to be obfuscated.

What do people typically do?




Archive powered by MHonArc 2.6.16.

§