Showing with 707 additions and 296 deletions.
  1. +10 −5 .github/CONTRIBUTING.md
  2. +9 −6 .github/ISSUE_TEMPLATE.md
  3. +3 −0 .github/PULL_REQUEST_TEMPLATE.md
  4. +4 −2 .gitignore
  5. +1 −1 .msync.yml
  6. +18 −2 .rubocop.yml
  7. +21 −19 .travis.yml
  8. +13 −0 CHANGELOG.md
  9. +10 −5 Gemfile
  10. +196 −79 README.md
  11. +4 −15 Rakefile
  12. +11 −0 lib/facter/confluence_version.rb
  13. +1 −0 manifests/config.pp
  14. +5 −32 manifests/facts.pp
  15. +30 −6 manifests/init.pp
  16. +2 −0 manifests/install.pp
  17. +5 −9 metadata.json
  18. +6 −6 spec/acceptance/1_default_parameters_spec.rb
  19. +6 −6 spec/acceptance/2_default_parameters_upgrade_spec.rb
  20. +9 −9 spec/acceptance/3_custom_parameters_spec.rb
  21. +3 −0 spec/acceptance/nodesets/centos-511-x64.yml
  22. +3 −0 spec/acceptance/nodesets/centos-66-x64-pe.yml
  23. +3 −0 spec/acceptance/nodesets/centos-66-x64.yml
  24. +3 −0 spec/acceptance/nodesets/centos-72-x64.yml
  25. +3 −0 spec/acceptance/nodesets/debian-78-x64.yml
  26. +3 −0 spec/acceptance/nodesets/debian-82-x64.yml
  27. +19 −0 spec/acceptance/nodesets/docker/centos-5.yml
  28. +20 −0 spec/acceptance/nodesets/docker/centos-6.yml
  29. +18 −0 spec/acceptance/nodesets/docker/centos-7.yml
  30. +19 −0 spec/acceptance/nodesets/docker/debian-7.yml
  31. +20 −0 spec/acceptance/nodesets/docker/debian-8.yml
  32. +19 −0 spec/acceptance/nodesets/docker/ubuntu-12.04.yml
  33. +21 −0 spec/acceptance/nodesets/docker/ubuntu-14.04.yml
  34. +19 −0 spec/acceptance/nodesets/docker/ubuntu-16.04.yml
  35. +15 −0 spec/acceptance/nodesets/fedora-24-x64.yml
  36. +18 −0 spec/acceptance/nodesets/fedora-25-x64.yml
  37. +3 −0 spec/acceptance/nodesets/ubuntu-server-1204-x64.yml
  38. +3 −0 spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
  39. +15 −0 spec/acceptance/nodesets/ubuntu-server-1604-x64.yml
  40. +27 −10 spec/classes/confluence_config_spec.rb
  41. +0 −22 spec/classes/confluence_facts_spec.rb
  42. +23 −18 spec/classes/confluence_install_spec.rb
  43. +1 −1 spec/classes/confluence_service_spec.rb
  44. +5 −5 spec/classes/confluence_spec.rb
  45. +6 −6 spec/classes/confluence_sso_spec.rb
  46. +2 −2 spec/classes/confluence_upgrade_spec.rb
  47. +9 −1 spec/default_facts.yml
  48. +5 −0 spec/spec_helper.rb
  49. +26 −0 spec/unit/facter/util/fact_confluence_version_spec.rb
  50. +4 −0 templates/confluence-init.properties.erb
  51. +0 −18 templates/facts.sh.erb
  52. +8 −0 templates/server.xml.erb
  53. +0 −11 tests/init.pp
15 changes: 10 additions & 5 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ This module has grown over time based on a range of contributions from
people using it. If you follow these contributing guidelines your patch
will likely make it into a release a little quicker.


## Contributing

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. [Contributor Code of Conduct](https://voxpupuli.org/coc/).
Please note that this project is released with a Contributor Code of Conduct.
By participating in this project you agree to abide by its terms.
[Contributor Code of Conduct](https://voxpupuli.org/coc/).

1. Fork the repo.

Expand Down Expand Up @@ -52,6 +53,11 @@ check various syntax and style things. You can run these locally with:
bundle exec rake lint
bundle exec rake validate

It will also run some [Rubocop](http://batsov.com/rubocop/) tests
against it. You can run those locally ahead of time with:

bundle exec rake rubocop

## Running the unit tests

The unit test suite covers most of the code, as mentioned above please
Expand All @@ -71,7 +77,6 @@ To run the linter, the syntax checker and the unit tests:

bundle exec rake test


## Integration tests

The unit tests just check the code runs, not that it does exactly what
Expand All @@ -85,9 +90,9 @@ with:
bundle exec rake acceptance

This will run the tests on an Ubuntu 12.04 virtual machine. You can also
run the integration tests against Centos 6.5 with.
run the integration tests against Centos 6.6 with.

BEAKER_set=centos-64-x64 bundle exec rake acceptances
BEAKER_set=centos-66-x64 bundle exec rake acceptances

If you don't want to have to recreate the virtual machine every time you
can use `BEAKER_DESTROY=no` and `BEAKER_PROVISION=no`. On the first run you will
Expand Down
15 changes: 9 additions & 6 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<!--
Thank you for contributing to this project!
- This project has a Contributor Code of Conduct: https://voxpupuli.org/coc/
- Please check that here is no existing issue or PR that addresses your problem.
- Please fill the following form to enable us to help you.
- Our vulnerabilities reporting process is at https://voxpupuli.org/security/
-->

### Affected Puppet, Ruby, OS and module versions/distributions
## Affected Puppet, Ruby, OS and module versions/distributions

- Puppet:
- Ruby:
- Distribution:
- Module version:

### How to reproduce (e.g Puppet code you use)
## How to reproduce (e.g Puppet code you use)

### What are you seeing
## What are you seeing

### What behaviour did you expect instead
## What behaviour did you expect instead

### Output log
## Output log

### Any additional information you'd like to impart
## Any additional information you'd like to impart
3 changes: 3 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<!--
Thank you for contributing to this project!
- This project has a Contributor Code of Conduct: https://voxpupuli.org/coc/
- Please check that here is no existing issue or PR that addresses your problem.
- Our vulnerabilities reporting process is at https://voxpupuli.org/security/
-->
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ Gemfile.lock
Gemfile.local
vendor/
.vendor/
spec/fixtures/
spec/fixtures/manifests/
spec/fixtures/modules/
.vagrant/
.bundle/
coverage/
log/
.idea/
*.iml
.*.sw
.*.sw?
.yardoc/
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
modulesync_config_version: '0.12.1'
modulesync_config_version: '0.16.11'
20 changes: 18 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ AllCops:
Include:
- ./**/*.rb
Exclude:
- files/**/*
- vendor/**/*
- .vendor/**/*
- pkg/**/*
Expand Down Expand Up @@ -56,6 +57,9 @@ Style/AndOr:
Style/RedundantSelf:
Enabled: True

Metrics/BlockLength:
Enabled: False

# Method length is not necessarily an indicator of code quality
Metrics/MethodLength:
Enabled: False
Expand All @@ -70,7 +74,7 @@ Style/WhileUntilModifier:
Lint/AmbiguousRegexpLiteral:
Enabled: True

Lint/Eval:
Security/Eval:
Enabled: True

Lint/BlockAlignment:
Expand Down Expand Up @@ -298,7 +302,7 @@ Style/EmptyLiteral:
Metrics/LineLength:
Enabled: False

Style/MethodCallParentheses:
Style/MethodCallWithoutArgsParentheses:
Enabled: True

Style/MethodDefParentheses:
Expand Down Expand Up @@ -506,3 +510,15 @@ RSpec/ExampleLength:

RSpec/NamedSubject:
Enabled: False

# disabled for now since they cause a lot of issues
# these issues aren't easy to fix
RSpec/RepeatedDescription:
Enabled: False

RSpec/NestedGroups:
Enabled: False

# disable Yaml safe_load. This is needed to support ruby2.0.0 development envs
Security/YAMLLoad:
Enabled: false
40 changes: 21 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ before_install:
- bundle -v
- rm Gemfile.lock || true
- gem update --system
- gem update bundler
- gem install bundler -v '~>1.13.0'
- gem --version
- bundle -v
script:
Expand All @@ -19,34 +19,36 @@ matrix:
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 1.9.3
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" FUTURE_PARSER="yes" CHECK=test
- rvm: 2.1
- rvm: 2.1.9
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.1
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.2
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.3.1
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=build
- rvm: 2.3.1
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=rubocop
- rvm: 2.3.1
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.4.0-preview1
env: PUPPET_VERSION="~> 4.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.1.9
env: PUPPET_VERSION="~> 4.0" CHECK=test
- rvm: 2.2.6
env: PUPPET_VERSION="~> 4.0" CHECK=test
- rvm: 2.3.3
env: PUPPET_VERSION="~> 4.0" CHECK=build DEPLOY_TO_FORGE=yes
- rvm: 2.3.3
env: PUPPET_VERSION="~> 4.0" CHECK=rubocop
- rvm: 2.3.3
env: PUPPET_VERSION="~> 4.0" CHECK=test
- rvm: 2.4.0
env: PUPPET_VERSION="~> 4.0" CHECK=test
allow_failures:
- rvm: 2.4.0-preview1
- rvm: 2.4.0
branches:
only:
- master
- /^v\d/
notifications:
email: false
deploy:
provider: puppetforge
edge:
branch: ha-bug-puppet-forge
user: puppet
password:
secure: "bca3Ebj/IE9a1X/BpLPVpMYw/zx9VkFRp1WjQZ437jYnpjyl2M/bC1cyW/A7TnzPX7WOpemT5+CVlVF/WE6f0Hrn6EqSzNwrVF8HOkGD8LqVLopXkaEn1zjcrhF4uMaleDpnNxQUx9nMAnqksiw2xphF1yxABqMt3l42SV7ajVw="
on:
tags: true
# all_branches is required to use tags
all_branches: true
# Only publish if our main Ruby target builds
rvm: 2.3.1
# Only publish the build marked with "DEPLOY_TO_FORGE"
condition: "$DEPLOY_TO_FORGE = yes"
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Changelog

## 2017-02-11 Release 2.3.0

This is the last release with Puppet3 support!
* Make facts.sh sh compatible
* Add additional parameter data_dir for seperate data from home user directory
* Make confluence_version a First Class Fact
* Allow System Group
* Use https instead of http for downloading confluence
* Bump puppet minimum version_requirement to 3.8.7
* Add support for configuring an AJP connector

## 2016-08-18 Release 2.2.2

* Fix: Issue with a clean puppet 4 based install failure.
Expand Down
15 changes: 10 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def location_for(place, fake_version = nil)
end

group :test do
gem 'puppetlabs_spec_helper', :require => false
gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git'
gem 'puppetlabs_spec_helper', '~> 1.2.2', :require => false
gem 'rspec-puppet', '~> 2.5', :require => false
gem 'rspec-puppet-facts', :require => false
gem 'rspec-puppet-utils', :require => false
gem 'puppet-lint-absolute_classname-check', :require => false
Expand All @@ -25,10 +25,14 @@ group :test do
gem 'metadata-json-lint', :require => false
gem 'puppet-blacksmith', :require => false
gem 'voxpupuli-release', :require => false, :git => 'https://github.com/voxpupuli/voxpupuli-release-gem.git'
gem 'puppet-strings', :require => false, :git => 'https://github.com/puppetlabs/puppetlabs-strings.git'
gem 'rubocop-rspec', '~> 1.6', :require => false if RUBY_VERSION >= '2.3.0'
gem 'puppet-strings', '~> 1.0.0', :require => false
gem 'redcarpet', :require => false
gem 'rubocop', '~> 0.47.0', :require => false if RUBY_VERSION >= '2.3.0'
gem 'rubocop-rspec', '~> 1.10.0', :require => false if RUBY_VERSION >= '2.3.0'
gem 'json_pure', '<= 2.0.1', :require => false if RUBY_VERSION < '2.0.0'
gem 'puppet-lint', '2.0.0'
gem 'mocha', '>= 1.2.1', :require => false
gem 'coveralls', :require => false if RUBY_VERSION >= '2.0.0'
gem 'simplecov-console', :require => false if RUBY_VERSION >= '2.0.0'
end

group :development do
Expand All @@ -46,6 +50,7 @@ group :system_tests do
else
gem 'beaker-rspec', :require => false
end
gem 'serverspec', :require => false
gem 'beaker-puppet_install_helper', :require => false
end

Expand Down
Loading