Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Release 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco committed Jan 15, 2017
1 parent 2fdb8d4 commit fd6af58
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
###1.7.0

* Add support for Tomcat 9
- Configurable nested UpgradeProtocol, SSLHostConfig and Certificate elements (Connector)
- Configurable nested CredentialHandler element (Realm)
- *Refer to the configuration examples for further usage instructions*
* Make the VersionLogger Listener attributes configurable via `versionlogger_*` parameters
* Make the JreMemoryLeakPrevention Listener attributes configurable via `jrememleak_attrs` parameter
* New parameter `jmx_uselocalports` for the JMX Listener
* **Warning:** the path to Tomcat archives is now composed of both `archive_source` and `archive_filename` (new) parameters
* Fix ignored `listeners` parameter

###1.6.2

* Add proxy support via new parameters `proxy_server` and `proxy_type`
Expand Down
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The tomcat module installs and configures Apache Tomcat instances from either th
##Module description

This module will install the desired version of the Apache Tomcat Web Application Container from almost any possible source, including the repositories available on the target system (distribution repositories or third-party sources like [JPackage](http://www.jpackage.org) and [EPEL](https://fedoraproject.org/wiki/EPEL))
A long list of parameters permit a fine-tuning of the server and the JVM. Tomcat's most common elements are provided, and virtually any missing parameters can be included using the hash parameters present in each block.
A long list of parameters allow a fine tuning of the server and the JVM. Tomcat's most common elements are provided, and virtually any missing parameters can be included using the hash parameters present in each block.
It is also possible to configure, besides the server itself, admin applications, extra libraries, the log4j logger, etc.
The creation of individual instances following [Apache's guidelines](http://tomcat.apache.org/tomcat-9.0-doc/RUNNING.txt) is supported via a custom type.

Expand Down Expand Up @@ -406,12 +406,15 @@ Parameters common to both `tomcat` and `tomcat::instance`
**Packages and service**

#####`version`
Tomcat full version number. The valid format is 'x.y.z[-package_suffix]'
Must include the full package suffix if Tomcat is installed from a package repository, the package `ensure` attribute will be enforced to this value.
Tomcat full version number. The valid format is 'x.y.z[.M##][-package_suffix]'. The package `ensure` attribute will be enforced to this value if Tomcat is installed from a package repository.
Must include the full package suffix on Debian variants.
*Note:* multi-version only supported if installed from archive

#####`archive_source`
Source of the Tomcat server archive, if installed from archive. Supports local files, puppet://, http://, https:// and ftp://. Defaults to `http://archive.apache.org/dist/tomcat/tomcat-<maj_version>/v<version>/bin/apache-tomcat-<version>.tar.gz`
Base path of the source of the Tomcat installation archive, if installed from archive. Supports local files, puppet://, http://, https:// and ftp://. Defaults to `http://archive.apache.org/dist/tomcat/tomcat-<maj_version>/v<version>/bin`.

#####`archive_filename`
File name of the Tomcat installation archive, if installed from archive. Defaults to `apache-tomcat-<version>.tar.gz`.

#####`proxy_server`
URL of a proxy server used for downloading Tomcat archives
Expand Down Expand Up @@ -466,7 +469,7 @@ Whether to install Tomcat extra libraries. Boolean value. Defaults to `false`.
*Warning:* extra libraries are enabled globally if defined within the global context

#####`extras_source`
Source of the Tomcat extra libraries. Supports local files, puppet://, http://, https:// and ftp://. Defaults to `http://archive.apache.org/dist/tomcat/tomcat-<maj_version>/v<version>/bin/extras`
Base path of the source of the Tomcat extra libraries. Supports local files, puppet://, http://, https:// and ftp://. Defaults to `http://archive.apache.org/dist/tomcat/tomcat-<maj_version>/v<version>/bin/extras`.

#####`manage_firewall`
Whether to automatically manage firewall rules. Boolean value. Defaults to `false`.
Expand Down Expand Up @@ -566,7 +569,7 @@ Whether to enable the [SSL-enabled HTTP connector](http://tomcat.apache.org/tomc
#####`ajp_connector`
Whether to enable the [AJP connector](http://tomcat.apache.org/tomcat-9.0-doc/config/ajp). Boolean value. Defaults to `true`. The Connector can be further configured via a series of parameters (will use Tomcat's defaults when not specified):
- `ajp_port`: AJP connector port. Defaults to `8009` (global) / `8010` (instance).
- `ajp_protocol`: protocol to use. Defaults to `AJP/1.3`
- `ajp_protocol`: protocol to use. Defaults to `AJP/1.3`.
- `ajp_use_threadpool`: whether to use the default Executor within the AJP connector. Defaults to `false`.
- `ajp_connectiontimeout`: timeout for a connection
- `ajp_uriencoding`: encoding to use for URI
Expand All @@ -575,14 +578,14 @@ Whether to enable the [AJP connector](http://tomcat.apache.org/tomcat-9.0-doc/co

#####`connectors`
An array of custom `Connector` entries to be added to the `Service` block. Each entry is to be supplied as a hash of attributes/values for the `Connector` XML node. See [HTTP](http://tomcat.apache.org/tomcat-9.0-doc/config/http.html)/[AJP](http://tomcat.apache.org/tomcat-9.0-doc/config/ajp.html) for the list of possible attributes.
Additionally, the following parameters can be used to configure nested elements:
Additionally, the following attributes are treated differently and used to configure nested elements:
- `upgradeprotocol`: [HTTP Upgrade Protocol element](https://tomcat.apache.org/tomcat-9.0-doc/config/http2.html). Hash parameter
- `sslhostconfigs`: [SSLHostConfig element(s)](https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig). Array of Hashs parameter
- `certificates`: [Certificate element(s)](https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_Certificate). Array of Hashs parameter

#####`engine_name`
Name of the default [Engine](http://tomcat.apache.org/tomcat-9.0-doc/config/engine.html). Defaults to `Catalina`. The Engine can be further configured via a series of parameters (will use Tomcat's defaults when not specified):
- `engine_defaulthost`: default host name. Defaults to [`${host_name}`](#host_name)
- `engine_defaulthost`: default host name. Defaults to [`${host_name}`](#host_name).
- `engine_jvmroute`: identifier which must be used in load balancing scenarios to enable session affinity
- `engine_params`: optional hash of additional attributes/values to put in the Engine container

Expand All @@ -598,7 +601,7 @@ Boolean value. Defaults to `true`. The User Database Realm is inserted within th

#####`realms`
An array of custom `Realm` entries to be added to the `Engine` container. Each entry is to be supplied as a hash of attributes/values for the `Realm` XML node. See [Realm](http://tomcat.apache.org/tomcat-9.0-doc/config/realm.html) for the list of possible attributes.
Additionally, the following parameters can be used to configure nested elements:
Additionally, the following attributes are treated differently and used to configure nested elements:
- `credentialhandler`: [CredentialHandler Component](https://tomcat.apache.org/tomcat-9.0-doc/config/credentialhandler.html). Hash parameter

#####`host_name`
Expand Down Expand Up @@ -657,7 +660,7 @@ initParameters for the `jsp` servlet. Generate a single hash for the [`${jsp_ser
- `jsp_servlet_javaencoding`: Java file encoding to use for generating java source files
- `jsp_servlet_modificationtestinterval`: interval in seconds to check a JSP for modification
- `jsp_servlet_trimspaces`: whether to trim white spaces in template text between actions or directives
- `jsp_servlet_xpoweredby`: whether X-Powered-By response header is added by servlet. Defaults to `false`
- `jsp_servlet_xpoweredby`: whether X-Powered-By response header is added by servlet. Defaults to `false`.
- `jsp_servlet_params`: optional hash of additional attributes/values to configure the `jsp` servlet

#####`default_servletmapping_urlpatterns`, `jsp_servletmapping_urlpatterns`, `sessionconfig_sessiontimeout`, `welcome_file_list`
Expand Down Expand Up @@ -800,14 +803,14 @@ A hash of attributes/values for the `Manager` nested component. See [Manager](ht

#####`realm`
A hash of attributes/values for the `Realm` nested component. See [Realm](http://tomcat.apache.org/tomcat-9.0-doc/config/realm.html) for the list of possible attributes.
Additionally, the following parameters can be used to configure nested elements:
Additionally, the following attributes are treated differently and used to configure nested elements:
- `credentialhandler`: [CredentialHandler Component](https://tomcat.apache.org/tomcat-9.0-doc/config/credentialhandler.html). Hash parameter

#####`resources`
A hash of attributes/values for the `Resources` nested component. See [Resources](http://tomcat.apache.org/tomcat-9.0-doc/config/resources.html) for the list of possible attributes.

#####`watchedresource`
An array of `WatchedResource` entries to be added to the `Context` container. Each entry is to be supplied as a string. Defaults to `['WEB-INF/web.xml','${catalina.base}/conf/web.xml']`
An array of `WatchedResource` entries to be added to the `Context` container. Each entry is to be supplied as a string. Defaults to `['WEB-INF/web.xml','${catalina.base}/conf/web.xml']`.

#####`parameters`
An array of `Parameter` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Parameter` XML node. See [Context Parameters](http://tomcat.apache.org/tomcat-9.0-doc/config/context.html#Context_Parameters) for the list of possible attributes.
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "aco-tomcat",
"summary": "Puppet module for Tomcat",
"author": "Antoine Cotten",
"version": "1.6.2",
"version": "1.7.0",
"license": "Apache-2.0",
"project_page": "https://github.com/antoineco/aco-tomcat",
"source": "git://github.com/antoineco/aco-tomcat.git",
Expand Down

0 comments on commit fd6af58

Please sign in to comment.