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

Commit

Permalink
update doc, release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco committed Jun 23, 2015
1 parent 53c02c5 commit 3e44829
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 43 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
###1.1.0

New `tomcat::context` defined type to manage additional contexts

###1.0.3

Fix regression due to changes in pid file management

###1.0.2

* Add missing `ensure` attributes ([hanej](https://github.com/hanej))
* Don't force pid file creation (fixes startup issue with Tomcat 6)
* Do not force pid file creation (fixes startup issue with Tomcat 6)

###1.0.1

Expand Down
83 changes: 48 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* [Define: tomcat::instance](#define-tomcatinstance)
* [Common parameters](#common-parameters)
* [Define: tomcat::userdb_entry](#define-tomcatuserdb_entry)
* [Define: tomcat::context](#define-tomcatcontext)
5. [Testing - How to run the included spec tests](#testing)
6. [Contributors](#contributors)

Expand Down Expand Up @@ -462,41 +463,8 @@ An array of `Resource` entries to be added to the `GlobalNamingResources` compon

**Context configuration**

#####`context_params`
A hash of attributes/values for the `Context` container. See [Context](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Attributes) for the list of possible attributes.

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

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

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

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

#####`context_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']`

#####`context_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-8.0-doc/config/context.html#Context_Parameters) for the list of possible attributes.

#####`context_environments`
An array of `Environment` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Environment` XML node. See [Environment Entries](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Environment_Entries) for the list of possible attributes.

#####`context_listeners`
An array of `Listener` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Listener` XML node. See [Lifecycle Listeners](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Lifecycle_Listeners) for the list of possible attributes.

#####`context_valves`
An array of `Valve` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Valve` XML node. See [Valve](http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html) for the list of possible attributes.

#####`context_resourcedefs`
An array of `Resource` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Resource` XML node. See [Resource Definitions](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Resource_Definitions) for the list of possible attributes.

#####`context_resourcelinks`
An array of `ResourceLink` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `ResourceLink` XML node. See [Resource Links](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Resource_Links) for the list of possible attributes.
#####`context_params`, `context_loader`, `context_manager`, `context_realm`, `context_resources`, `context_watchedresource`, `context_parameters`, `context_environments`, `context_listeners`, `context_valves`, `context_resourcedefs`, `context_resourcelinks`
See [tomcat::context](#define-tomcatcontext) defined type.

**Global configuration file / environment variables**

Expand Down Expand Up @@ -594,6 +562,51 @@ User password (string)
#####`roles`
User roles (array)

####Define: `tomcat::context`

Create tomcat context files

**Parameters within `tomcat::context`:**

#####`path`
Absolute path indicating where the context file should be created. Mandatory. Does not create parent folders.

#####`params`
A hash of attributes/values for the `Context` container. See [Context](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Attributes) for the list of possible attributes.

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

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

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

#####`resources`
A hash of attributes/values for the `Resources` nested component. See [Resources](http://tomcat.apache.org/tomcat-8.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']`

#####`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-8.0-doc/config/context.html#Context_Parameters) for the list of possible attributes.

#####`environments`
An array of `Environment` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Environment` XML node. See [Environment Entries](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Environment_Entries) for the list of possible attributes.

#####`listeners`
An array of `Listener` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Listener` XML node. See [Lifecycle Listeners](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Lifecycle_Listeners) for the list of possible attributes.

#####`valves`
An array of `Valve` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Valve` XML node. See [Valve](http://tomcat.apache.org/tomcat-8.0-doc/config/valve.html) for the list of possible attributes.

#####`resourcedefs`
An array of `Resource` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `Resource` XML node. See [Resource Definitions](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Resource_Definitions) for the list of possible attributes.

#####`resourcelinks`
An array of `ResourceLink` entries to be added to the `Context` container. Each entry is to be supplied as a hash of attributes/values for the `ResourceLink` XML node. See [Resource Links](http://tomcat.apache.org/tomcat-8.0-doc/config/context.html#Resource_Links) for the list of possible attributes.

##Testing

The only prerequisite is to have the [Bundler](http://bundler.io/) gem installed:
Expand Down
12 changes: 6 additions & 6 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -978,17 +978,17 @@
::tomcat::context {
"instance ${name} manager.xml":
path => "${catalina_base_real}/conf/Catalina/${host_name}/manager.xml",
params => { 'path' => '/manager',
'docBase' => "${admin_webapps_path}/manager",
params => { 'path' => '/manager',
'docBase' => "${admin_webapps_path}/manager",
'antiResourceLocking' => false,
'privileged' => 'true' };
'privileged' => true };

"instance ${name} host-manager.xml":
path => "${catalina_base_real}/conf/Catalina/${host_name}/host-manager.xml",
params => { 'path' => '/host-manager',
'docBase' => "${admin_webapps_path}/host-manager",
params => { 'path' => '/host-manager',
'docBase' => "${admin_webapps_path}/host-manager",
'antiResourceLocking' => false,
'privileged' => 'true' }
'privileged' => true }
}
} else {
# warn if admin webapps were selected for installation
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.0.3",
"version": "1.1.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 3e44829

Please sign in to comment.