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?
Thank you,
Joshua
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?
Thank you,
Joshua
On Tue, Dec 7, 2010 at 11:14 AM, Joshua Miller jassinpain@gmail.com 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
See also: Opscodeās AWS, bluepill, daemontools cookbooks for examples of LWRP.
Dan DeLeo
Thank you,
Joshua