Showing with 489 additions and 191 deletions.
  1. +35 −98 .travis.yml
  2. +2 −5 Gemfile
  3. +1 −0 README.md
  4. +203 −71 manifests/init.pp
  5. +1 −1 manifests/limits.pp
  6. +1 −1 manifests/limits/fragment.pp
  7. +3 −2 metadata.json
  8. +34 −10 spec/classes/init_spec.rb
  9. +2 −2 spec/classes/limits_spec.rb
  10. +1 −1 spec/defines/limits/fragment_spec.rb
  11. +5 −0 spec/fixtures/pam_common_account.defaults.ubuntu1804
  12. +7 −0 spec/fixtures/pam_common_account.vas.ubuntu1804
  13. 0 spec/fixtures/{pam_common_account_pc.defaults.suse12 → pam_common_account_pc.defaults.suse12.3}
  14. +3 −0 spec/fixtures/pam_common_account_pc.defaults.suse12.4
  15. 0 spec/fixtures/{pam_common_account_pc.vas.suse12 → pam_common_account_pc.vas.suse12.3}
  16. +5 −0 spec/fixtures/pam_common_account_pc.vas.suse12.4
  17. +6 −0 spec/fixtures/pam_common_auth.defaults.ubuntu1804
  18. +7 −0 spec/fixtures/pam_common_auth.vas.ubuntu1804
  19. 0 spec/fixtures/{pam_common_auth_pc.defaults.suse12 → pam_common_auth_pc.defaults.suse12.3}
  20. +4 −0 spec/fixtures/pam_common_auth_pc.defaults.suse12.4
  21. 0 spec/fixtures/{pam_common_auth_pc.vas.suse12 → pam_common_auth_pc.vas.suse12.3}
  22. +6 −0 spec/fixtures/pam_common_auth_pc.vas.suse12.4
  23. +8 −0 spec/fixtures/pam_common_noninteractive_session.defaults.ubuntu1804
  24. +10 −0 spec/fixtures/pam_common_noninteractive_session.vas.ubuntu1804
  25. +5 −0 spec/fixtures/pam_common_password.defaults.ubuntu1804
  26. +7 −0 spec/fixtures/pam_common_password.vas.ubuntu1804
  27. 0 spec/fixtures/{pam_common_password_pc.defaults.suse12 → pam_common_password_pc.defaults.suse12.3}
  28. +4 −0 spec/fixtures/pam_common_password_pc.defaults.suse12.4
  29. 0 spec/fixtures/{pam_common_password_pc.vas.suse12 → pam_common_password_pc.vas.suse12.3}
  30. +6 −0 spec/fixtures/pam_common_password_pc.vas.suse12.4
  31. +8 −0 spec/fixtures/pam_common_session.defaults.ubuntu1804
  32. +10 −0 spec/fixtures/pam_common_session.vas.ubuntu1804
  33. 0 spec/fixtures/{pam_common_session_pc.defaults.suse12 → pam_common_session_pc.defaults.suse12.3}
  34. +7 −0 spec/fixtures/pam_common_session_pc.defaults.suse12.4
  35. 0 spec/fixtures/{pam_common_session_pc.vas.suse12 → pam_common_session_pc.vas.suse12.3}
  36. +9 −0 spec/fixtures/pam_common_session_pc.vas.suse12.4
  37. 0 spec/fixtures/{pam_d_login.defaults.suse12 → pam_d_login.defaults.suse12.3}
  38. +10 −0 spec/fixtures/pam_d_login.defaults.suse12.4
  39. +19 −0 spec/fixtures/pam_d_login.defaults.ubuntu1804
  40. 0 spec/fixtures/{pam_d_sshd.defaults.suse12 → pam_d_sshd.defaults.suse12.3}
  41. +9 −0 spec/fixtures/pam_d_sshd.defaults.suse12.4
  42. +15 −0 spec/fixtures/pam_d_sshd.defaults.ubuntu1804
  43. +19 −0 templates/login.ubuntu18.erb
  44. +17 −0 templates/sshd.ubuntu18.erb
133 changes: 35 additions & 98 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,110 +1,47 @@
---
language: ruby

rvm:
- 1.8.7
- 1.9.3
- 2.0.0
- 2.1.9
- 2.3.1
cache: bundler

env:
matrix:
- PUPPET_GEM_VERSION="~> 3.1.0"
- PUPPET_GEM_VERSION="~> 3.2.0"
- PUPPET_GEM_VERSION="~> 3.3.0"
- PUPPET_GEM_VERSION="~> 3.4.0"
- PUPPET_GEM_VERSION="~> 3.5.0"
- PUPPET_GEM_VERSION="~> 3.6.0"
- PUPPET_GEM_VERSION="~> 3.7.0"
- PUPPET_GEM_VERSION="~> 3.8.0"
- PUPPET_GEM_VERSION="~> 3" FUTURE_PARSER="yes"
- PUPPET_GEM_VERSION="~> 4.0.0"
- PUPPET_GEM_VERSION="~> 4.1.0"
- PUPPET_GEM_VERSION="~> 4.2.0"
- PUPPET_GEM_VERSION="~> 4.3.0"
- PUPPET_GEM_VERSION="~> 4.4.0"
- PUPPET_GEM_VERSION="~> 4.5.0"
- PUPPET_GEM_VERSION="~> 4.6.0"
- PUPPET_GEM_VERSION="~> 4.7.0"
- PUPPET_GEM_VERSION="~> 4.8.0"
- PUPPET_GEM_VERSION="~> 4.9.0"
- PUPPET_GEM_VERSION="~> 4.10.0"
- PUPPET_GEM_VERSION="~> 4"

sudo: false
before_install:
- if [ $BUNDLER_VERSION ]; then
gem install -v $BUNDLER_VERSION bundler --no-rdoc --no-ri;
fi
- bundle -v
- rm -f Gemfile.lock
- gem update --system $RUBYGEMS_VERSION
- gem --version
- bundle -v

script: 'SPEC_OPTS="--format documentation" bundle exec rake validate lint spec'

matrix:
fast_finish: true
exclude:
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 3.1.0"
- rvm: 2.1.9
env: PUPPET_GEM_VERSION="~> 3.1.0"
- rvm: 2.1.9
env: PUPPET_GEM_VERSION="~> 3.2.0"
- rvm: 2.1.9
env: PUPPET_GEM_VERSION="~> 3.3.0"
- rvm: 2.1.9
env: PUPPET_GEM_VERSION="~> 3.4.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.0.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.1.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.2.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.3.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.4.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.5.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.6.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.7.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.8.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.9.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4.10.0"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 4.9.0"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 4.10.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 4.9.0"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 4.10.0"
- rvm: 1.8.7
env: PUPPET_GEM_VERSION="~> 4"
- rvm: 1.9.3
env: PUPPET_GEM_VERSION="~> 4"
- rvm: 2.0.0
env: PUPPET_GEM_VERSION="~> 4"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.1.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.2.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.3.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.4.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.5.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.6.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.7.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3.8.0"
- rvm: 2.3.1
env: PUPPET_GEM_VERSION="~> 3" FUTURE_PARSER="yes"
allow_failures:
- rvm: 2.3.1
include:
- rvm: 1.9.3
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3.7.0"
- rvm: 1.9.3
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3"
- rvm: 1.9.3
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3" FUTURE_PARSER="yes"
- rvm: 2.0.0
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3.7.0"
- rvm: 2.0.0
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3"
- rvm: 2.0.0
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3" FUTURE_PARSER="yes"
- rvm: 2.1.9
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3.7.0"
- rvm: 2.1.9
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3"
- rvm: 2.1.9
env: RUBYGEMS_VERSION=2.0.17 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 3" FUTURE_PARSER="yes"
- rvm: 2.1.9
env: RUBYGEMS_VERSION=2.7.8 BUNDLER_VERSION=1.17.3 PUPPET_GEM_VERSION="~> 4"
- rvm: 2.4.1
env: PUPPET_GEM_VERSION="~> 5"
- rvm: 2.5.1
env: PUPPET_GEM_VERSION="~> 6"

notifications:
email: false
7 changes: 2 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,10 @@ gem 'puppet-lint-undef_in_function-check'
gem 'puppet-lint-unquoted_string-check'
gem 'puppet-lint-variable_contains_upcase'

gem 'rspec', '~> 2.0' if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9'
gem 'rake', '~> 10.0' if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9'
gem 'json', '<= 1.8' if RUBY_VERSION < '2.0.0'
gem 'json_pure', '<= 2.0.1' if RUBY_VERSION < '2.0.0'
gem 'metadata-json-lint', '0.0.11' if RUBY_VERSION < '1.9'
gem 'metadata-json-lint' if RUBY_VERSION >= '1.9'
gem 'metadata-json-lint', '0.0.11' if RUBY_VERSION <= '1.9.3'
gem 'metadata-json-lint' if RUBY_VERSION > '1.9.3'

gem 'puppetlabs_spec_helper', '2.0.2', :require => false if RUBY_VERSION >= '1.8.7' && RUBY_VERSION < '1.9'
gem 'puppetlabs_spec_helper', '>= 2.0.0', :require => false if RUBY_VERSION >= '1.9'
gem 'parallel_tests', '<= 2.9.0', :require => false if RUBY_VERSION < '2.0.0'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ versions.
* Ubuntu 12.04 LTS
* Ubuntu 14.04 LTS
* Ubuntu 16.04 LTS
* Ubuntu 18.04 LTS
* Debian 7
* Debian 8

Expand Down
Loading