[chef] Re: Advice on how to run multi instances


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Advice on how to run multi instances
  • Date: Wed, 8 Dec 2010 08:50:47 -0800

On Tue, Dec 7, 2010 at 11:14 AM, Joshua Miller 
< >
 wrote:
> My Dev wants to run multiple instances of mongo on one box, only way I can 
> see to do this is multiple mongo cookbooks with diff attribute names?
>
> Thoughts?

You probably want to extract your current mongodb recipe into a
LWRP[1] or resource definition (LWRP recommended). Then you can just
pass in the things that are different about them, (on-disk locations,
port numbers, etc.) without having to have several nearly-identical
cookbooks.

HTH,
Dan DeLeo

1. 
http://wiki.opscode.com/display/chef/Light-weight+Resources+and+Providers+%28LWRP%29

See also: Opscode's AWS, bluepill, daemontools cookbooks for examples of LWRP.

Dan DeLeo

>
>
> Thank you,
>
> Joshua



Archive powered by MHonArc 2.6.16.

§