tomcat6

Manages tomcat6 in /etc/tomcat6

Tim

sharumpe

11,909 downloads

11,574 latest version

1.5 quality score

Version information

  • 0.2.3 (latest)
  • 0.2.2
  • 0.2.1
  • 0.2.0
released Sep 24th 2014

Start using this module

Documentation

sharumpe/tomcat6 — version 0.2.3 Sep 24th 2014

tomcat6

Manages tomcat6 in /etc/tomcat6. This has defined types for tomcat-users.xml's roles and users, context.xml parameters, and most-used settings in server.xml. Also configures JAVA_OPTS and CATALINA_OPTS in tomcat6.conf. This does NOT restart Tomcat on config file changes.

This is provided as-is, YMMV.

Examples

Include the module and set some Thread counts:

class { 'tomcat6' :
    ajpMaxThreads       => 700,
    ajpMinSpareThreads  => 25,
    ajpMaxSpareThreads  => 75,
}

Full list of class parameters currently recognized, with their default values:

    $httpPort           = 8080,
    $httpRedirectPort   = 8443,
    $httpsPort          = 8443,
    $ajpPort            = 8009,
    $ajpRedirectPort    = 8443,
    $ajpMaxThreads      = 150,
    $ajpMinSpareThreads = 25,
    $ajpMaxSpareThreads = 50

Enable debug:

tomcat6::conf { 'config' :
    debugEnable => true,
    debugPort   => 9666,
}

Full list of tomcat6::conf parameters currently recognized, with their default values:

    $debugEnable    = false,
    $debugPort      = 9666,

    $jmxEnable      = false,
    $jmxPort        = 8666,

    $memoryMin      = 128,
    $memoryMax      = 1024,
    $memoryPermGen  = 256,

    $connectTimeout = 30,
    $readTimeout    = 300,

    $java_opt       = "",
    $catalina_opt   = ""

Set a default context parameter: (see .pp for defaults)

tomcat6::context::parameter { 'serverName' :
    value       => 'vagrant.localdomain',
    description => 'The serverName for use by things.',
}

Set a default context environment value: (see .pp for defaults)

tomcat6::context::environment { 'deploymentType' :
    value       => 'development',
    override    => false,
    type        => 'java.lang.String',
    description => 'The deploymentType for use by things.',
}

Set up a user for the Tomcat Manager:

tomcat6::user { 'manager-vagrant' :
    user        => 'vagrant',
    password    => 'vagrant',
    role        => 'manager',
}

Contact

nospam@macwebb.com

If you send email, please include "sharumpe-tomcat6" in the subject line.