New tomcat cookbook w/ lwrp to create multiple instances on a single node

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

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" bryan.berry@gmail.com:

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

cookbooks/tomcat at master · bryanwb/cookbooks · GitHub

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

I will be setting up jira soon but not sure about the other atlassian
components. I will definitely throw my stuff into the public space

On Thu, Feb 23, 2012 at 7:40 PM, Torben Knerr ukio@gmx.de wrote:

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" bryan.berry@gmail.com:

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

cookbooks/tomcat at master · bryanwb/cookbooks · GitHub

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