# Installing Tomcat using Ruby

**URL:** <https://www.ruby-forum.com/t/installing-tomcat-using-ruby/228828>\
**Category:** Ruby\
**Created:** [May 9, 2013, 7:14am UTC](https://www.ruby-forum.com/t/installing-tomcat-using-ruby/228828 "2013-05-09T07:14:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lavanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/df788c/32.png) [@lavanya](https://www.ruby-forum.com/u/lavanya)\
**Post date:** [May 9, 2013, 7:14am UTC](https://www.ruby-forum.com/t/installing-tomcat-using-ruby/228828/1 "2013-05-09T07:14:30Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![lavanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/df788c/32.png) [@lavanya](https://www.ruby-forum.com/u/lavanya)\
**Post date:** [May 9, 2013, 4:46pm UTC](https://www.ruby-forum.com/t/installing-tomcat-using-ruby/228828/2 "2013-05-09T16:46:20Z")

</div>

On Wed, May 8, 2013 at 10:14 PM, Lavanaya BJ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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?

---

<div class="post-metadata">

**Author:** ![lavanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/df788c/32.png) [@lavanya](https://www.ruby-forum.com/u/lavanya)\
**Post date:** [May 10, 2013, 7:43am UTC](https://www.ruby-forum.com/t/installing-tomcat-using-ruby/228828/3 "2013-05-10T07:43:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lavanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/df788c/32.png) [@lavanya](https://www.ruby-forum.com/u/lavanya)\
**Post date:** [May 10, 2013, 4:22pm UTC](https://www.ruby-forum.com/t/installing-tomcat-using-ruby/228828/4 "2013-05-10T16:22:43Z")

</div>

On Thu, May 9, 2013 at 10:43 PM, Lavanaya BJ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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.

---

<div class="post-metadata">

**Author:** ![lavanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/df788c/32.png) [@lavanya](https://www.ruby-forum.com/u/lavanya)\
**Post date:** [May 22, 2013, 7:55am UTC](https://www.ruby-forum.com/t/installing-tomcat-using-ruby/228828/5 "2013-05-22T07:55:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lavanya](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/df788c/32.png) [@lavanya](https://www.ruby-forum.com/u/lavanya)\
**Post date:** [May 22, 2013, 4:59pm UTC](https://www.ruby-forum.com/t/installing-tomcat-using-ruby/228828/6 "2013-05-22T16:59:58Z")

</div>

On Tue, May 21, 2013 at 10:55 PM, Lavanaya BJ [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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? 🙂

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.
