Forge Home

tomcat

This is the tomcat module, it allows you to create instances of tomcat and deploy tomcat applications

9,625 downloads

8,925 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.1 (latest)
  • 1.0.0
released Sep 29th 2015
This version is compatible with:

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'ceh-tomcat', '1.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ceh-tomcat
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ceh-tomcat --version 1.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

ceh/tomcat — version 1.0.1 Sep 29th 2015

Tomcat

Overview

This is the tomcat module, it allows you to create instances of tomcat and deploy tomcat applications

Module Description

With this module you can create instances of tomcat on debian. These instances can either be standalone or fronted by apache using the ajp connector.

You can also deploy applications which are hosted either on the puppet file system or from a nexus instance

Setup

What Tomcat affects

  • Installs the tomcat package
  • Install the tomcat-user package

Usage

To create an insance of tomcat

tomcat::instance {'myTomcat':
    http_port   => 80,
}

And then deploy a maven artifact to that instance from nexus

tomcat::deployment {'Deploy my web app':
    tomcat      => 'myTomcat',
    group       => 'my.new.project',
    artifact    => 'project-webapp',
}

or from a war file

tomcat::deployment {'A different application':
    tomcat      => 'myTomcat',
    war         => 'puppet:///webapps/dummy.war',
    application => 'secondApp'
}

You can also provide a tomcat base with additional jar files

tomcat::instance::provide { 'Provide myTomcat with jar from nexus' :
    tomcat   => 'myTomcat',
    group    => 'my.custom.jar',
    artifact => 'provided-to-tomcat',
}

Limitations

This module has been tested on Ubuntu 12.04 lts and Ubuntu 14.04 lts

Contributors

Christopher Johnson - cjohn@ceh.ac.uk