Installing Tomcat using Ruby

Hello,

I want to know whether we can install Tomcat server through ruby script.
If yes, then how can we do it? What are the requirements? I have a code
from Opsworks. I got it from the following link.

http://community.opscode.com/cookbooks/tomcat6

I have downloaded the ruby files from this site, but I am not
understanding the flow.

Can anyone help me out, regarding the steps to be followed for
installing the Tomcat using Ruby script.

Thanks

On Wed, May 8, 2013 at 10:14 PM, Lavanaya BJ [email protected]
wrote:

installing the Tomcat using Ruby script.
Are you trying to learn Chef or are you trying to write your own
Tomcat installer in Ruby?

Actually, first we are trying to write our own tomcat installer in ruby,
then move on with learning chef. Could you help on this?

On Thu, May 9, 2013 at 10:43 PM, Lavanaya BJ [email protected]
wrote:

Actually, first we are trying to write our own tomcat installer in ruby,
then move on with learning chef. Could you help on this?

Do you have a specific question? It seems pretty straightforward:
use one of a number of possible libraries to download a tar file and
untar it in the desired location. Done.

Unless you’re talking about a configuration “wizard” type approach
in which case there’s more to it, but nothing very complex.

I have downloaded mysql and tomcat cookbooks from opscode site. Now I
need to perform integration of mysql with tomcat these with the help of
ruby. What idea I am having is, to manipulate some code from these
cookbooks for integration. But I am not getting how to manipulate and
what to manipulate. Can you help on this? Else is there any other way of
performing this integration.

On Tue, May 21, 2013 at 10:55 PM, Lavanaya BJ [email protected]
wrote:

I have downloaded mysql and tomcat cookbooks from opscode site. Now I
need to perform integration of mysql with tomcat these with the help of
ruby. What idea I am having is, to manipulate some code from these
cookbooks for integration. But I am not getting how to manipulate and
what to manipulate. Can you help on this? Else is there any other way of
performing this integration.

Help with what? Learning and using Chef? No, you need to do that
on your own.

Writing an “any other way” approach? Sure, what’s your timeframe
and budget? :slight_smile:

The fact that it’s conceptually simple doesn’t mean it won’t be a fair
amount of work (besides duplicating existing functionality). But the
choice is yours.