Showing with 3,288 additions and 2,398 deletions.
  1. +2 −0 .fixtures.yml
  2. +2 −0 .gitignore
  3. +24 −0 .pdkignore
  4. +19 −2 .rubocop.yml
  5. +19 −41 .sync.yml
  6. +16 −14 .travis.yml
  7. +1 −0 .yardopts
  8. +31 −2 CHANGELOG.md
  9. +25 −87 Gemfile
  10. +318 −0 HISTORY.md
  11. +4 −1,709 README.md
  12. +2,032 −0 REFERENCE.md
  13. +73 −1 Rakefile
  14. +3 −7 manifests/config/context.pp
  15. +21 −19 manifests/config/context/environment.pp
  16. +13 −13 manifests/config/context/manager.pp
  17. +15 −13 manifests/config/context/resource.pp
  18. +15 −10 manifests/config/context/resourcelink.pp
  19. +15 −14 manifests/config/context/valve.pp
  20. +4 −2 manifests/config/properties.pp
  21. +9 −1 manifests/config/properties/property.pp
  22. +17 −13 manifests/config/server.pp
  23. +21 −17 manifests/config/server/connector.pp
  24. +19 −18 manifests/config/server/context.pp
  25. +27 −24 manifests/config/server/engine.pp
  26. +15 −17 manifests/config/server/globalnamingresource.pp
  27. +19 −20 manifests/config/server/host.pp
  28. +19 −19 manifests/config/server/listener.pp
  29. +27 −23 manifests/config/server/realm.pp
  30. +11 −12 manifests/config/server/service.pp
  31. +21 −20 manifests/config/server/tomcat_users.pp
  32. +19 −19 manifests/config/server/valve.pp
  33. +17 −21 manifests/init.pp
  34. +34 −0 manifests/install.pp
  35. +2 −6 manifests/install/package.pp
  36. +2 −9 manifests/install/source.pp
  37. +56 −34 manifests/instance.pp
  38. +2 −2 manifests/instance/copy_from_home.pp
  39. +4 −1 manifests/instance/dependencies.pp
  40. +32 −25 manifests/service.pp
  41. +25 −11 manifests/setenv/entry.pp
  42. +21 −25 manifests/war.pp
  43. +11 −10 metadata.json
  44. +41 −33 spec/acceptance/acceptance_1b_spec.rb
  45. +6 −6 spec/acceptance/acceptance_2b_spec.rb
  46. +5 −5 spec/acceptance/acceptance_3b_spec.rb
  47. +1 −1 spec/acceptance/acceptance_4b_spec.rb
  48. +3 −2 spec/acceptance/readme_spec.rb
  49. +8 −0 spec/default_facts.yml
  50. +1 −4 spec/defines/config/context/environment_spec.rb
  51. +2 −10 spec/defines/config/server/connector_spec.rb
  52. +2 −10 spec/defines/config/server/host_spec.rb
  53. +1 −5 spec/defines/config/server/listener_spec.rb
  54. +56 −29 spec/defines/config/server/realm_spec.rb
  55. +1 −4 spec/defines/config/server/tomcat_users_spec.rb
  56. +1 −1 spec/defines/config/server/valve_spec.rb
  57. +2 −2 spec/defines/instance_spec.rb
  58. +46 −0 spec/defines/service_spec.rb
  59. +21 −0 spec/spec_helper.rb
  60. +6 −3 spec/spec_helper_acceptance.rb
  61. +3 −2 templates/jsvc-init.erb
2 changes: 2 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ fixtures:
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
concat: "https://github.com/puppetlabs/puppetlabs-concat.git"
archive: "https://github.com/voxpupuli/puppet-archive.git"
augeas_core: "https://github.com/puppetlabs/puppetlabs-augeas_core.git"

symlinks:
tomcat: "#{source_dir}"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.git/
.*.sw[op]
.metadata
.yardoc
Expand All @@ -19,4 +20,5 @@
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
24 changes: 24 additions & 0 deletions .pdkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.git/
.*.sw[op]
.metadata
.yardoc
.yardwarns
*.iml
/.bundle/
/.idea/
/.vagrant/
/coverage/
/bin/
/doc/
/Gemfile.local
/Gemfile.lock
/junit/
/log/
/pkg/
/spec/fixtures/manifests/
/spec/fixtures/modules/
/tmp/
/vendor/
/convert_report.txt
/update_report.txt
.DS_Store
21 changes: 19 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ AllCops:
Exclude:
- bin/*
- ".vendor/**/*"
- Gemfile
- Rakefile
- "**/Gemfile"
- "**/Rakefile"
- pkg/**/*
- spec/fixtures/**/*
- vendor/**/*
- "**/Puppetfile"
- "**/Vagrantfile"
- "**/Guardfile"
Metrics/LineLength:
Description: People have wide screens, use them.
Max: 200
GetText/DecorateString:
Description: We don't want to decorate test output.
Exclude:
- spec/*
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests.
A necessary evil in acceptance testing.
Expand Down Expand Up @@ -63,6 +70,14 @@ Style/TrailingCommaInLiteral:
Style/SymbolArray:
Description: Using percent style obscures symbolic intent of array's contents.
EnforcedStyle: brackets
RSpec/MessageSpies:
EnforcedStyle: receive
Style/Documentation:
Exclude:
- lib/puppet/parser/functions/**/*
- spec/**/*
Style/WordArray:
EnforcedStyle: brackets
Style/CollectionMethods:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Expand All @@ -71,6 +86,8 @@ Style/StringMethods:
Enabled: true
Layout/EndOfLine:
Enabled: false
Layout/IndentHeredoc:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Expand Down
60 changes: 19 additions & 41 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
---
.travis.yml:
docker_sets:
- set: docker/centos-7
- set: docker/ubuntu-14.04
docker_defaults:
bundler_args: ""
secure: ""
branches:
- release

Gemfile:
optional:
':system_tests':
- gem: rspec-retry
required:
':system_tests':
- gem: 'puppet-module-posix-system-r#{minor_version}'
Expand All @@ -12,46 +19,17 @@ Gemfile:
- mswin
- mingw
- x64_mingw
- gem: beaker-abs
from_env: BEAKER_ABS_VERSION
version: '~> 0.1'
- gem: beaker-pe
- gem: beaker-hostgenerator
from_env: BEAKER_HOSTGENERATOR_VERSION
- gem: rspec-retry
require: false
optional:
':development':
- gem: puppet-blacksmith
version: '~> 3.4'
- gem: beaker-rspec
from_env: BEAKER_RSPEC_VERSION
- gem: beaker
version: '~> 3.13'
from_env: BEAKER_VERSION
- gem: beaker-puppet_install_helper
- gem: 'github_changelog_generator'
git: 'https://github.com/skywinder/github-changelog-generator'
ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018'
condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')"

appveyor.yml:
delete: true

# only run a minimal subset of tests on travis, running all the tests can cause travis to timeout
.travis.yml:
docker_sets:
- set: docker/ubuntu-14.04
options:
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=@@SET@@ SPEC_OPTS="--tag docker"
- set: docker/centos-7
options:
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=@@SET@@ SPEC_OPTS="--tag docker"
extras:
- rvm: 2.1.9
script: bundle exec rake rubocop
branches:
- release
extras:
- env: CHECK=release_checks
rvm: 2.1.9

spec/spec_helper.rb:
allow_deprecations: true

Rakefile:
requires:
- puppet_blacksmith/rake_tasks
.gitlab-ci.yml:
unmanaged: true
30 changes: 16 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,46 @@ language: ruby
cache: bundler
before_install:
- bundle -v
- rm Gemfile.lock || true
- rm -f Gemfile.lock
- gem update --system
- gem update bundler
- gem --version
- bundle -v
script:
- 'bundle exec rake $CHECK'
bundler_args: --without system_tests
rvm:
- 2.4.1
- 2.1.9
- 2.5.0
env:
- PUPPET_GEM_VERSION="~> 4.0" CHECK=spec
- PUPPET_GEM_VERSION="~> 5.0" CHECK=spec
global:
- BEAKER_PUPPET_COLLECTION=puppet6 PUPPET_GEM_VERSION="~> 6.0"
matrix:
fast_finish: true
include:
-
bundler_args:
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/ubuntu-14.04 SPEC_OPTS="--tag docker"
rvm: 2.4.1
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/centos-7 BEAKER_TESTMODE=apply
rvm: 2.5.0
script: bundle exec rake beaker
services: docker
sudo: required
-
bundler_args:
dist: trusty
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_set=docker/centos-7 SPEC_OPTS="--tag docker"
rvm: 2.4.1
env: PUPPET_INSTALL_TYPE=agent BEAKER_debug=true BEAKER_PUPPET_COLLECTION=puppet6 BEAKER_set=docker/ubuntu-14.04 BEAKER_TESTMODE=apply
rvm: 2.5.0
script: bundle exec rake beaker
services: docker
sudo: required
-
env: CHECK=rubocop
env: CHECK="syntax lint metadata_lint check:symlinks check:git_ignore check:dot_underscore check:test_file rubocop"
-
env: CHECK="syntax lint"
env: CHECK=parallel_spec
-
env: CHECK=metadata_lint
env: PUPPET_GEM_VERSION="~> 5.0" CHECK=parallel_spec
rvm: 2.4.4
-
env: CHECK=release_checks
env: PUPPET_GEM_VERSION="~> 4.0" CHECK=parallel_spec
rvm: 2.1.9
branches:
only:
Expand Down
1 change: 1 addition & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--markup markdown
33 changes: 31 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
## Supported Release [2.3.0]
# Change log

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).

## [2.4.0](https://github.com/puppetlabs/puppetlabs-tomcat/tree/2.4.0) (2018-10-03)

[Full Changelog](https://github.com/puppetlabs/puppetlabs-tomcat/compare/2.3.0...2.4.0)

### Added

- pdksync - \(FM-7392\) - Puppet 6 Testing Changes [\#321](https://github.com/puppetlabs/puppetlabs-tomcat/pull/321) ([pmcmaw](https://github.com/pmcmaw))
- pdksync - \(MODULES-7658\) use beaker4 in puppet-module-gems [\#315](https://github.com/puppetlabs/puppetlabs-tomcat/pull/315) ([tphoney](https://github.com/tphoney))
- \(FM-7239\) - Addition of support for Ubuntu 18.04 [\#306](https://github.com/puppetlabs/puppetlabs-tomcat/pull/306) ([david22swan](https://github.com/david22swan))
- adding wait\_timeout var for init [\#303](https://github.com/puppetlabs/puppetlabs-tomcat/pull/303) ([ackiejoe](https://github.com/ackiejoe))
- \[FM-7050\] Addition of support for Debian 9 on Tomcat [\#300](https://github.com/puppetlabs/puppetlabs-tomcat/pull/300) ([david22swan](https://github.com/david22swan))

### Fixed

- pdksync - \(MODULES-6805\) metadata.json shows support for puppet 6 [\#319](https://github.com/puppetlabs/puppetlabs-tomcat/pull/319) ([tphoney](https://github.com/tphoney))
- pdksync - \(MODULES-7705\) - Bumping stdlib dependency from \< 5.0.0 to \< 6.0.0 [\#314](https://github.com/puppetlabs/puppetlabs-tomcat/pull/314) ([pmcmaw](https://github.com/pmcmaw))
- \(MODULES-7633\) - Update README Limitations section [\#307](https://github.com/puppetlabs/puppetlabs-tomcat/pull/307) ([eimlav](https://github.com/eimlav))
- \(maint\) Double retry count to workaround slow startups [\#301](https://github.com/puppetlabs/puppetlabs-tomcat/pull/301) ([hunner](https://github.com/hunner))
- \[FM-6967\] Removal of unsupported OS from tomcat [\#299](https://github.com/puppetlabs/puppetlabs-tomcat/pull/299) ([david22swan](https://github.com/david22swan))
- Add rspec retry gem to sync file [\#295](https://github.com/puppetlabs/puppetlabs-tomcat/pull/295) ([HelenCampbell](https://github.com/HelenCampbell))
- \#puppethack work if resource title contains spaces [\#287](https://github.com/puppetlabs/puppetlabs-tomcat/pull/287) ([rheijkoop](https://github.com/rheijkoop))

## 2.3.0
### Summary
A release that introduced the module to the PDK through conversion. Also a dependancy bump on the archive module along with a small fix.

Expand Down Expand Up @@ -97,7 +123,7 @@ This release adds support for internationalization of the module. It also contai
### 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.
- (MODULES-1986) Added newline to the inline template assigned to $\_content.
- (MODULES-3224) Added mode attribute to concat resource that sets the executable bit for all permission levels.
- Fix for fixtures.yml, was pointing to nanliu-staging instead of puppet-staging.
- Fix duplicate resources in host/realm/valve.
Expand Down Expand Up @@ -316,3 +342,6 @@ Initial release of the tomcat module.
[2.1.0]: https://github.com/puppetlabs/puppetlabs-tomcat/compare/2.0.0...2.1.0
[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


\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
Loading