Showing with 1,546 additions and 2,102 deletions.
  1. +1 −1 .fixtures.yml
  2. +4 −0 .sync.yml
  3. +3 −3 .travis.yml
  4. +57 −21 CHANGELOG.md
  5. +9 −7 Gemfile
  6. +159 −95 README.md
  7. +6 −4 examples/jsvc_install_from_source.pp
  8. +2 −2 manifests/config/context.pp
  9. +27 −47 manifests/config/context/environment.pp
  10. +6 −9 manifests/config/context/manager.pp
  11. +7 −10 manifests/config/context/resource.pp
  12. +13 −16 manifests/config/context/resourcelink.pp
  13. +73 −0 manifests/config/context/valve.pp
  14. +21 −25 manifests/config/server.pp
  15. +33 −26 manifests/config/server/connector.pp
  16. +25 −30 manifests/config/server/context.pp
  17. +42 −42 manifests/config/server/engine.pp
  18. +24 −21 manifests/config/server/globalnamingresource.pp
  19. +28 −32 manifests/config/server/host.pp
  20. +19 −23 manifests/config/server/listener.pp
  21. +46 −42 manifests/config/server/realm.pp
  22. +14 −17 manifests/config/server/service.pp
  23. +26 −32 manifests/config/server/tomcat_users.pp
  24. +26 −29 manifests/config/server/valve.pp
  25. +23 −27 manifests/init.pp
  26. +19 −17 manifests/install.pp
  27. +20 −19 manifests/install/source.pp
  28. +12 −11 manifests/instance.pp
  29. +0 −13 manifests/params.pp
  30. +33 −37 manifests/service.pp
  31. +12 −20 manifests/setenv/entry.pp
  32. +35 −30 manifests/war.pp
  33. +4 −4 metadata.json
  34. +156 −94 readmes/README_ja_JP.md
  35. +0 −230 spec/acceptance/acceptance_1a_spec.rb
  36. +33 −32 spec/acceptance/acceptance_1b_spec.rb
  37. +0 −215 spec/acceptance/acceptance_2a_spec.rb
  38. +136 −131 spec/acceptance/acceptance_2b_spec.rb
  39. +0 −305 spec/acceptance/acceptance_3a_spec.rb
  40. +65 −68 spec/acceptance/acceptance_3b_spec.rb
  41. +0 −98 spec/acceptance/acceptance_4a_spec.rb
  42. +40 −22 spec/acceptance/acceptance_4b_spec.rb
  43. +24 −24 spec/acceptance/readme_spec.rb
  44. +1 −10 spec/classes/tomcat_spec.rb
  45. +4 −4 spec/defines/config/context/environment_spec.rb
  46. +53 −0 spec/defines/config/context/valve_spec.rb
  47. +2 −2 spec/defines/config/server/connector_spec.rb
  48. +3 −3 spec/defines/config/server/context_spec.rb
  49. +6 −6 spec/defines/config/server/engine_spec.rb
  50. +5 −5 spec/defines/config/server/host_spec.rb
  51. +3 −3 spec/defines/config/server/listener_spec.rb
  52. +44 −35 spec/defines/config/server/realm_spec.rb
  53. +2 −2 spec/defines/config/server/service_spec.rb
  54. +6 −13 spec/defines/config/server/tomcat_users_spec.rb
  55. +3 −3 spec/defines/config/server/valve_spec.rb
  56. +2 −2 spec/defines/config/server_spec.rb
  57. +34 −0 spec/defines/install_spec.rb
  58. +12 −15 spec/defines/instance_spec.rb
  59. +2 −2 spec/defines/service_spec.rb
  60. +8 −8 spec/defines/setenv/entry_spec.rb
  61. +20 −19 spec/defines/war_spec.rb
  62. +51 −37 spec/spec_helper_acceptance.rb
  63. +2 −2 templates/jsvc-init.erb
2 changes: 1 addition & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ fixtures:
repositories:
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
concat: "https://github.com/puppetlabs/puppetlabs-concat.git"
staging: "https://github.com/voxpupuli/puppet-staging.git"
archive: "https://github.com/voxpupuli/puppet-archive.git"
symlinks:
tomcat: "#{source_dir}"
4 changes: 4 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
Gemfile:
optional:
':system-tests':
- gem: rspec-retry
appveyor.yml:
delete: true
# only run a minimal subset of tests on travis, running all the tests can cause travis to timeout
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ matrix:
script: bundle exec rake beaker
services: docker
sudo: required
- rvm: 2.3.1
- rvm: 2.4.0
bundler_args: --without system_tests
env: PUPPET_GEM_VERSION="~> 4.0"
- rvm: 2.1.7
env: PUPPET_GEM_VERSION="~> 5.0"
- rvm: 2.1.9
bundler_args: --without system_tests
env: PUPPET_GEM_VERSION="~> 4.0"
notifications:
Expand Down
78 changes: 57 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,40 @@
## Supported Release 1.7.0
## Supported Release [2.0.0]
### Summary
This major release drops puppet 3, changes dependencies from staging to archive, and adds various "real world" configuration abilities.

### Changed
- Dependency puppet-staging (which is deprecated) removed in favor of puppet-archive
- Dropped compatibility with puppet 3.x series
- Remove `true`/`false` as valid values for all ensure attributes as they are ambiguous.

### Removed
- Deprecated `tomcat::setenv::entry` attribute `base_path`. Use `config_file` instead.
- Base `tomcat` class `install_from_source` parameter now does nothing. Use `tomcat::install` attribute `install_from_source` directly instead.
- No longer testing tomcat 6 as it is EOL and removed from the mirrors.
- `tomcat::install` attribute `environment` previously used for proxy settings. Use `proxy_server` and `proxy_type` instead.

### Deprecated
- `tomcat::instance` define parameters `install_from_source`, `source_url`, `source_strip_first_dir`, `package_ensure`, `package_name`, and `package_options` have been unofficially deprecated since 1.5.0 and are now formally deprecated. Please use `tomcat::install` instead and point any `tomcat::instance::catalina_home` there. See the readme for further examples.

### Added
- Compatibility with puppet 5.x series
- Puppet 4.x data type parameter validation.
- `tomcat::config::server::realm` Can manage multiple realms of identical class names.
- `tomcat::config::server::tomcat_users` Can be declared multiple times for the same element name.
- `tomcat::config::context::value` defined type.
- `tomcat::install` attributes `proxy_server` and `proxy_type` for installing behind a proxy.
- `tomcat::install` attribute `allow_insecure` for disabling https verification.
- `tomcat::war` ability to use context paths and versions with `war_name` attribute.
- `tomcat::war` ability to ignore HTTPS errors with `allow_insecure` attribute.

### Fixed
- Corrected documentation for all `attributes_to_remove` attributes.

## Supported Release [1.7.0]
### Summary
This release adds support for internationalization of the module. It also contains Japanese translations for the README, summary and description of the metadata.json and major cleanups in the README. Additional folders have been introduced called locales and readmes where translation files can be found. A number of features and bug fixes are also included in this release.

#### Features
### Added
- Addition of POT file for metadata translation for i18n.
- Readme update and edit in preparation for localization.
- Environment can now be passed through to staging, so we can set a proxy to download tomcat.
Expand All @@ -12,7 +44,7 @@ This release adds support for internationalization of the module. It also contai
- Bump in puppet-staging module dependancy for allowing newer versions.
- Ability to not manage catalina.properties.

#### Bugfixes
### Fixed
- (MODULES-4003) Adds a 'require => Tomcat::Install[$name]' to the ensure_resource function.
- (MODULES-4003) Removes logic that checks to see if catalina_base and catalina_home are the same.
- (MODULES-1986) Added newline to the inline template assigned to $_content.
Expand All @@ -33,14 +65,14 @@ umasks. The previous change caused duplicate resource declarations when
downloading a tomcat tarball from `puppet://` or local paths. The umask bug
remains (it is actually present in staging, not tomcat).

#### Bugfixes
### Fixed
- Fix duplicate resource declarations when using local source paths

## Supported Release 1.6.0
### Summary
This release adds two new defines for managing environment variables and manager elements, enhances multi-instance multi-user support, allows valves to be nested in contexts, fixes an issue with installing directly to NFS mounted directories, fixes installation on systems with a strict root umask,

#### Features
### Added
- Add `tomcat::config::context::environment` define
- Add `tomcat::config::context::manager` define
- Add `owner` and `group` to `tomcat::config::server::tomcat_users`
Expand All @@ -52,7 +84,7 @@ This release adds two new defines for managing environment variables and manager
- Change from `nanliu/staging` to `puppet/staging`
- Allow `role` to be set for user elements in `tomcat::config::server::tomcat_users`

#### Bugfixes
### Fixed
- Fix globalresource missing (MODULES-3353)
- Fix strict vars for `tomcat::config::server::service` (MODULES-3742)
- Work around duplicate user resources (PUP-5971)
Expand All @@ -73,7 +105,7 @@ create an init script for service management of source-based installs. And
`tomcat::instance` can declare a `tomcat::service` resource for your instance to
make life easier.

#### Features
### Added
- Added `tomcat::config::properties::property` define
- Added `tomcat::config::server::globalnamingresource` define
- Added `tomcat::config::context` define
Expand All @@ -96,7 +128,7 @@ make life easier.
- `use_init`
- Added Debian 8 compatibility

#### Bugfixes
### Fixed
- Fixed conflating `CATALINA_BASE` with `CATALINA_HOME`
- Made `tomcat::config::server::connector` protocol default to `$name`
- Lots of additional validation
Expand All @@ -108,12 +140,12 @@ make life easier.

Small release for bug with multiple Realms in the same parent path.

#### Features
### Added
- Improved documentation for purging connectors.
- Improved documentation for purging realms.
- Added package_options to tomcat::instance

#### Bugfixes
### Fixed
- Fixed bug where multiple Realms in the same parent would corrupt data.
- Added work-around for Augeas bug when purging Realms.

Expand All @@ -126,7 +158,7 @@ Small release for support of newer PE versions. This increments the version of P
### Summary
This release fixes username quoting and metadata.

#### Bugfixes
### Fixed
- Allow username values that contain non-string characters like whitespace
- Validate $catalina\_base
- Correct pe/puppet compatibility metadata
Expand All @@ -140,7 +172,7 @@ This release fixes metadata because it supports puppet 4.

This is a feature release, with a couple of bugfixes and readme changes.

#### Features
### Added
- Update additional_attributes to support values with spaces
- Documentation changes
- Add a manifest for Context Containers in Tomcat configuration
Expand All @@ -152,7 +184,7 @@ This is a feature release, with a couple of bugfixes and readme changes.
- Add ability to specify server_config location
- Allow configuration of location of server.xml

#### Bugfixes
### Fixed
- Make sure setenv entries have export
- Test improvements
- version pinning for acceptance tests
Expand All @@ -162,11 +194,11 @@ This is a feature release, with a couple of bugfixes and readme changes.

This is primarily a feature release, with a couple of bugfixes for tests and metadata.

#### Features
### Added
- Add `install_from_source` parameter to class `tomcat`
- Add `purge_connectors` parameter to class `tomcat` and define `tomcat::server::connector`

#### Bugfixes
### Fixed
- Fix dependencies to remove missing dependency warnings with the PMT
- Use `curl -k` in the tests

Expand All @@ -175,13 +207,13 @@ This is primarily a feature release, with a couple of bugfixes for tests and met

This release includes documentation and test updates, strict variable support, metadata bugs, and added support for multiple connectors with the same protocol.

### Features
### Added
- Strict variable support
- Support multiple connectors with the same protocol
- Update tests to not break when tomcat releases happen
- Update README based on QA feedback

### Bugfixes
### Fixed
- Update stdlib requirement to 4.2.0
- Fix illegal version range in metadata.json
- Fix typo in README
Expand All @@ -191,7 +223,7 @@ This release includes documentation and test updates, strict variable support, m

This is a bugfix release.

### Bugfixes
### Fixed
- Fix typo in tomcat::instance
- Update acceptance tests for new tomcat releases

Expand All @@ -200,14 +232,14 @@ This is a bugfix release.

This release has added support for installation from packages, improved WAR management, and updates to testing and documentation.

### Features
### Added
- Updated tomcat::setenv::entry to better support installations from package
- Added the ability to purge auto-exploded WAR directories when removing WARs. Defaults to purging these directories
- Added warnings for unused variables when installing from package
- Updated acceptance tests and nodesets
- Updated README

### Deprecations
### Deprecated
- $tomcat::setenv::entry::base_path is being deprecated in favor of $tomcat::setenv::entry::config_file

## 2014-08-20 - Release 0.1.2
Expand All @@ -220,7 +252,7 @@ This release adds compatibility information and updates the README with informat

This is a bugfix release.

### Bugfixes
### Fixed
- Update 'warn' to correct 'warning' function.
- Update README for use_init.
- Test updates and fixes.
Expand All @@ -229,3 +261,7 @@ This is a bugfix release.
### Summary

Initial release of the tomcat module.


[2.0.0]: https://github.com/puppetlabs/puppetlabs-tomcat/compare/1.7.0...2.0.0
[1.7.0]: https://github.com/puppetlabs/puppetlabs-tomcat/compare/1.6.1...1.7.0
16 changes: 9 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ ruby_version_segments = Gem::Version.new(RUBY_VERSION.dup).segments
minor_version = "#{ruby_version_segments[0]}.#{ruby_version_segments[1]}"

group :development do
gem "puppet-module-posix-default-r#{minor_version}", :require => false, :platforms => "ruby"
gem "puppet-module-win-default-r#{minor_version}", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
gem "puppet-module-posix-dev-r#{minor_version}", :require => false, :platforms => "ruby"
gem "puppet-module-win-dev-r#{minor_version}", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
gem "json_pure", '<= 2.0.1', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
gem "fast_gettext", '1.1.0', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
gem "fast_gettext", :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
gem "puppet-module-posix-default-r#{minor_version}", :require => false, :platforms => "ruby"
gem "puppet-module-win-default-r#{minor_version}", :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
gem "puppet-module-posix-dev-r#{minor_version}", :require => false, :platforms => "ruby"
gem "puppet-module-win-dev-r#{minor_version}", '0.0.7', :require => false, :platforms => ["mswin", "mingw", "x64_mingw"]
gem "json_pure", '<= 2.0.1', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.0.0')
gem "fast_gettext", '1.1.0', :require => false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.1.0')
gem "fast_gettext", :require => false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.1.0')
end

group :system_tests do
Expand All @@ -50,6 +50,8 @@ group :system_tests do
gem "beaker-rspec", *location_for(ENV['BEAKER_RSPEC_VERSION'])
gem "beaker-hostgenerator", *location_for(ENV['BEAKER_HOSTGENERATOR_VERSION'])
gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 0.1')
gem "puppet-blacksmith", '~> 3.4', :require => false
gem "rspec-retry", :require => false
end

gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION'])
Expand Down
Loading