[chef] Multiple tomcats binary install on a single machine


Chronological Thread 
  • From: Emilien Floret < >
  • To:
  • Subject: [chef] Multiple tomcats binary install on a single machine
  • Date: Mon, 20 Apr 2015 11:33:13 +0200

Hello everyone,

I'm trying to set up a box where there is three tomcats installations, all of them full installations (and not instances) (different binary version requirements)
I tried different things, such as creating multiple client/node on the same machine and setting different run list.
However, I'm not sure this is supported configuration and this causes issue as well because cookbooks will at some point try to manage the same resources and cancel the changes from the other one.

I was thinking otherwise of forking a tomcat cookbook, replace all the variables for example default['tomcat']['port'] to default['project1']['tomcat']['port'] but that would mean integrating any new changes to the tomcat cookbook would be very complicated. Also, if I have three project on the same box, I'll need to change that three times.

Is there any way to do something like this with Chef? Or should I look at docker + chef eventually?
The same questions applies to java, if I need three different version of java for the tomcats, then I also need to manage three replicas of the java cookbooks.

Thanks for your inputs
Regards,
--
Emilien Floret
.........................................................
EdifiXio Grenoble, 23 Avenue Doyen Louis Weil, 38000 Grenoble
Tel : +33 6 16 58 37 66



Archive powered by MHonArc 2.6.16.

§