[chef] Re: new tomcat cookbook w/ lwrp to create multiple instances on a single node


Chronological Thread 
  • From: Torben Knerr < >
  • To:
  • Subject: [chef] Re: new tomcat cookbook w/ lwrp to create multiple instances on a single node
  • Date: Thu, 23 Feb 2012 19:40:27 +0100
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of designates 10.52.66.43 as permitted sender) ; dkim=pass

Nice!

Looks like you are setting up the atlassian stack (or at least parts of it) with the new tomcat lwrp. I would be interested in that too - is this something to be released to public soon?

Anyways, having a lwrp for separate tomcat instances is just great.

Cheers, Torben

Am 23.02.2012 16:23 schrieb "Bryan Berry" < "> >:
I have revised the tomcat cookbook so that it installs from the binaries hosted at apache.org rather than jpackage and so this supports multiple tomcat instances on the same node. It supports the RedHat and Debian families


to use it, 

add "recipe[tomcat::ark]"   to your run_list

this will install the basic tomcat libraries at /usr/local/tomcat/default/ but it will not enable a system daemon

tomcat "jira" do
  http_port  8080
  https_port 8443
end
The following actions will be taken
  • creates a tomcat instance at  /usr/local/tomcat/jira/  w/ templates catalina.properties, logging.properties, server.xml files 
  • create a user account "jira" and make it the owner of /usr/local/tomcat/jira
  • set environment variables in /etc/default/jira, notably CATALINA_HOME as /usr/local/tomcat/default/ and CATALINA_BASE as /usr/local/tomcat/jira
  • creates system V init script in /etc/init.d/jira and enables it, this is a generic startup script modeled on catalina.sh

tomcat "confluence" do
  http_port  8081
  https_port 8444

  jvm_opts ["-Xmx1024M,  "XX:MaxPermGen256M" ]

end
This resource will create a tomcat instance at /usr/local/tomcat/confluence, create a `confluence` user, set up the sysv init script, etc.

The only property that tomcat['confluence'] will share with tomcat['jira'] the common value for CATALINA_HOME

This cookbook is still changing rapidly as I work out the kinks, but I think others will find it useful.

BryanWB







Archive powered by MHonArc 2.6.16.

§