- From: Ash Berlin <
>
- To:
- Subject: [chef] Re: Re: Can someone validate my understanding of chef?
- Date: Wed, 6 Oct 2010 12:26:28 +0100
On 6 Oct 2010, at 12:19, Jon Wood wrote:
>
On 6 October 2010 08:55,
>
<
>
>
wrote:
>
> I am looking for the best way to structure the following.
>
>
>
> We have several legacy java websites running apache, tomcat & mysql.
>
>
>
> Currently I am thinking about each site would have it's own cookbook and
>
> branch
>
> in the node, such as
>
> the one below:
>
>
>
...snip...
>
>
>
> Does this sounds like the chef way to go?
>
>
That would generally be the way to go, although you might like to look
>
at using data bags for that instead, and including an attribute called
>
something like "deploy_to" which lists the servers that application
>
should be deployed onto.
(Missed the original email in this thread, but)
Have you looked at the application cookbook? It drives deploys from data bags
- an example is
http://gist.github.com/568508
The main reason I bring this up is that it uses 'deploy_to' as a path where
to deploy things to. It works out what hosts to deploy it to by looking at
the roles of the node and the roles you specify in the "server_roles" key.
More info on
http://github.com/opscode/cookbooks/tree/master/application/
-ash
Archive powered by MHonArc 2.6.16.