Skip to content

evenup/evenup-tomcat

Repository files navigation

What is it?

A puppet module to install and configure tomcat and manage applications and their config. This module supports tomcat vhosts, managing WARs, and configuration located within a decompressed war. This module also includes an init script for RHEL based systems.

Usage:

Generic tomcat install

  class { 'tomcat': }

Adding a virtual host:

  # Tomcat vhost
  tomcat::vhost { 'www':
    aliases  => [ 'www', 'www.mycompany.com', "www.${::fqdn}" ],
    contexts => { 'base' => 'ROOT', 'path' => '' },
  }

Installing a WAR from artifactory:

  tomcat::war{ 'jenkins':
    app     => 'ROOT',
    source  => 'artifactory',
    project => 'Jenkins',
    site    => 'www',
    version => '1.2.3',
  }

Configuring an application:

  tomcat::app_config { 'jenkins_properties':
    site          => 'www',
    app           => 'ROOT',
    file          => 'WEB-INF/classes/properties/jenkins.properties',
    content       => template('jenkins/jenkins.properties.erb'),
    reload_tomcat => true,
    }

Known Issues:

Only tested on CentOS 6 and Tomcat 7

TODO:


[ ] Expose more configuration options [ ] Allow sites directory to be outside of $install_dir [ ] Generic config cleanup

License:


Released under the Apache 2.0 licence

Contribute:

  • Fork it
  • Create a topic branch
  • Improve/fix (with spec tests)
  • Push new topic branch
  • Submit a PR

About

Puppet module to manage tomcat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •