Showing with 2,425 additions and 458 deletions.
  1. +4 −2 .fixtures.yml
  2. +9 −0 .geppetto-rc.json
  3. +3 −0 .gitignore
  4. +11 −0 .sync.yml
  5. +15 −12 .travis.yml
  6. +22 −0 CHANGELOG.md
  7. +4 −18 CONTRIBUTING.md
  8. +34 −8 Gemfile
  9. +472 −263 README.md
  10. +2 −2 Rakefile
  11. +20 −0 examples/instance_with_context.pp
  12. +18 −0 examples/instance_with_listener.pp
  13. +20 −0 examples/instance_with_realm.pp
  14. +23 −0 examples/instance_with_role_and_user.pp
  15. +8 −1 manifests/config/server.pp
  16. +9 −2 manifests/config/server/connector.pp
  17. +102 −0 manifests/config/server/context.pp
  18. +8 −1 manifests/config/server/engine.pp
  19. +9 −2 manifests/config/server/host.pp
  20. +98 −0 manifests/config/server/listener.pp
  21. +104 −0 manifests/config/server/realm.pp
  22. +8 −1 manifests/config/server/service.pp
  23. +97 −0 manifests/config/server/tomcat_users.pp
  24. +9 −2 manifests/config/server/valve.pp
  25. +8 −0 manifests/init.pp
  26. +25 −0 manifests/service.pp
  27. +5 −2 manifests/setenv/entry.pp
  28. +7 −7 metadata.json
  29. +3 −13 spec/acceptance/acceptance_1_spec.rb
  30. +8 −18 spec/acceptance/acceptance_2_spec.rb
  31. +2 −12 spec/acceptance/acceptance_3_spec.rb
  32. +10 −0 spec/acceptance/nodesets/centos-59-x64.yml
  33. +2 −2 spec/acceptance/nodesets/centos-65-x64.yml
  34. +2 −2 spec/acceptance/nodesets/default.yml
  35. +10 −0 spec/acceptance/nodesets/ubuntu-server-10044-x64.yml
  36. +10 −0 spec/acceptance/nodesets/ubuntu-server-12042-x64.yml
  37. +2 −1 spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
  38. +4 −4 spec/classes/tomcat_spec.rb
  39. +13 −10 spec/defines/config/server/connector_spec.rb
  40. +197 −0 spec/defines/config/server/context_spec.rb
  41. +14 −13 spec/defines/config/server/engine_spec.rb
  42. +16 −13 spec/defines/config/server/host_spec.rb
  43. +231 −0 spec/defines/config/server/listener_spec.rb
  44. +321 −0 spec/defines/config/server/realm_spec.rb
  45. +5 −4 spec/defines/config/server/service_spec.rb
  46. +247 −0 spec/defines/config/server/tomcat_users_spec.rb
  47. +10 −7 spec/defines/config/server/valve_spec.rb
  48. +29 −9 spec/defines/config/server_spec.rb
  49. +1 −1 spec/defines/instance/package_spec.rb
  50. +1 −1 spec/defines/instance/source_spec.rb
  51. +4 −4 spec/defines/instance_spec.rb
  52. +68 −12 spec/defines/service_spec.rb
  53. +20 −3 spec/defines/setenv/entry_spec.rb
  54. +6 −6 spec/defines/war_spec.rb
  55. +35 −0 spec/spec_helper_acceptance.rb
6 changes: 4 additions & 2 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
fixtures:
repositories:
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
concat: "https://github.com/puppetlabs/puppetlabs-concat.git"
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
concat:
repo: "https://github.com/puppetlabs/puppetlabs-concat.git"
branch: "1.2.x"
staging: "https://github.com/nanliu/puppet-staging.git"
symlinks:
tomcat: "#{source_dir}"
9 changes: 9 additions & 0 deletions .geppetto-rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"excludes": [
"**/contrib/**",
"**/examples/**",
"**/tests/**",
"**/spec/**",
"**/pkg/**"
]
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ spec/fixtures/
.vagrant/
.bundle/
coverage/
.idea/
*.iml
log/
11 changes: 11 additions & 0 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
.travis.yml:
includes:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
- rvm: 2.1.6
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
27 changes: 15 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
branches:
only:
- master
sudo: false
language: ruby
bundler_args: --without development
script: "bundle exec rake spec SPEC_OPTS='--format documentation'"
rvm:
- 1.9.3
- 2.0.0
env:
matrix:
- PUPPET_GEM_VERSION="~> 3.3.0"
- PUPPET_GEM_VERSION="~> 3.4.0"
bundler_args: --without system_tests
script: "bundle exec rake validate && bundle exec rake lint && bundle exec rake spec SPEC_OPTS='--format documentation'"
matrix:
fast_finish: true
include:
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0"
- rvm: 2.1.5
env: PUPPET_GEM_VERSION="~> 3.0" FUTURE_PARSER="yes"
- rvm: 2.1.6
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
allow_failures:
- rvm: 2.1.6
env: PUPPET_GEM_VERSION="~> 4.0" STRICT_VARIABLES="yes"
notifications:
email: false
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
##2015-06-09 - Supported Release 1.3.0
###Summary

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

####Features
- Update additional_attributes to support values with spaces
- Documentation changes
- Add a manifest for Context Containers in Tomcat configuration
- Manage User and Roles in Realms
- New manifests for context.xml configuration
- Added manifest for managing Realm elements in server.xml
- Ordering of setenv entries
- Adds parameter for enabling Tomcat service on boot
- Add ability to specify server_config location
- Allow configuration of location of server.xml

####Bugfixes
- Make sure setenv entries have export
- Test improvements
- version pinning for acceptance tests

##2014-11-11 - Supported Release 1.2.0
###Summary

Expand Down
22 changes: 4 additions & 18 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ Checklist (and a short version for the impatient)

* Pre-requisites:

- Sign the [Contributor License Agreement](https://cla.puppetlabs.com/)

- Make sure you have a [GitHub account](https://github.com/join)

- [Create a ticket](http://projects.puppetlabs.com/projects/modules/issues/new), or [watch the ticket](http://projects.puppetlabs.com/projects/modules/issues) you are patching for.
- [Create a ticket](https://tickets.puppetlabs.com/secure/CreateIssue!default.jspa), or [watch the ticket](https://tickets.puppetlabs.com/browse/) you are patching for.

* Preferred method:

Expand Down Expand Up @@ -94,17 +92,7 @@ The long version
whitespace or other "whitespace errors". You can do this by
running "git diff --check" on your changes before you commit.

2. Sign the Contributor License Agreement

Before we can accept your changes, we do need a signed Puppet
Labs Contributor License Agreement (CLA).

You can access the CLA via the [Contributor License Agreement link](https://cla.puppetlabs.com/)

If you have any questions about the CLA, please feel free to
contact Puppet Labs via email at cla-submissions@puppetlabs.com.

3. Sending your patches
2. Sending your patches

To submit your changes via a GitHub pull request, we _highly_
recommend that you have them on a topic branch, instead of
Expand All @@ -124,7 +112,7 @@ The long version
in order to open a pull request.


4. Update the related GitHub issue.
3. Update the related GitHub issue.

If there is a GitHub issue associated with the change you
submitted, then you should update the ticket to include the
Expand Down Expand Up @@ -220,14 +208,12 @@ review.
Additional Resources
====================

* [Getting additional help](http://projects.puppetlabs.com/projects/puppet/wiki/Getting_Help)
* [Getting additional help](http://puppetlabs.com/community/get-help)

* [Writing tests](http://projects.puppetlabs.com/projects/puppet/wiki/Development_Writing_Tests)

* [Patchwork](https://patchwork.puppetlabs.com)

* [Contributor License Agreement](https://projects.puppetlabs.com/contributor_licenses/sign)

* [General GitHub documentation](http://help.github.com/)

* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
Expand Down
42 changes: 34 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
source ENV['GEM_SOURCE'] || "https://rubygems.org"

group :development, :test do
gem 'rake', :require => false
gem 'rspec-puppet', :require => false
def location_for(place, fake_version = nil)
if place =~ /^(git:[^#]*)#(.*)/
[fake_version, { :git => $1, :branch => $2, :require => false }].compact
elsif place =~ /^file:\/\/(.*)/
['>= 0', { :path => File.expand_path($1), :require => false }]
else
[place, { :require => false }]
end
end

group :development, :unit_tests do
gem 'rspec-core', '3.1.7', :require => false
gem 'puppetlabs_spec_helper', :require => false
gem 'serverspec', :require => false
gem 'puppet-lint', :require => false
gem 'beaker', :require => false
gem 'beaker-rspec', :require => false
gem 'pry', :require => false
gem 'simplecov', :require => false
gem 'puppet_facts', :require => false
gem 'json', :require => false
end

group :system_tests do
if beaker_version = ENV['BEAKER_VERSION']
gem 'beaker', *location_for(beaker_version)
end
if beaker_rspec_version = ENV['BEAKER_RSPEC_VERSION']
gem 'beaker-rspec', *location_for(beaker_rspec_version)
else
gem 'beaker-rspec', :require => false
end
gem 'serverspec', :require => false
end



if facterversion = ENV['FACTER_GEM_VERSION']
gem 'facter', facterversion, :require => false
else
gem 'facter', :require => false
end

if puppetversion = ENV['PUPPET_GEM_VERSION']
Expand Down
Loading