Showing with 299 additions and 172 deletions.
  1. +17 −12 .github/CONTRIBUTING.md
  2. +1 −1 .msync.yml
  3. +13 −0 .rubocop.yml
  4. +14 −9 .travis.yml
  5. +57 −18 CHANGELOG.md
  6. +13 −7 Gemfile
  7. +3 −2 README.md
  8. +23 −3 Rakefile
  9. +3 −5 docs/_index.html
  10. +5 −6 docs/file.README.html
  11. +1 −1 docs/frames.html
  12. +5 −6 docs/index.html
  13. +2 −4 docs/puppet_classes/selinux.html
  14. +2 −4 docs/puppet_classes/selinux_3A_3Aconfig.html
  15. +2 −4 docs/puppet_classes/selinux_3A_3Apackage.html
  16. +11 −5 docs/puppet_classes/selinux_3A_3Aparams.html
  17. +2 −4 docs/puppet_classes/selinux_3A_3Arefpolicy_package.html
  18. +2 −4 docs/puppet_defined_types/selinux_3A_3Aboolean.html
  19. +45 −10 docs/puppet_defined_types/selinux_3A_3Aexec_restorecon.html
  20. +2 −4 docs/puppet_defined_types/selinux_3A_3Afcontext.html
  21. +2 −4 docs/puppet_defined_types/selinux_3A_3Afcontext_3A_3Aequivalence.html
  22. +2 −4 docs/puppet_defined_types/selinux_3A_3Amodule.html
  23. +2 −4 docs/puppet_defined_types/selinux_3A_3Apermissive.html
  24. +2 −4 docs/puppet_defined_types/selinux_3A_3Aport.html
  25. +2 −4 docs/puppet_providers_selinux_fcontext/semanage.html
  26. +2 −4 docs/puppet_providers_selinux_fcontext_equivalence/semanage.html
  27. +2 −4 docs/puppet_providers_selinux_permissive/semanage.html
  28. +2 −4 docs/puppet_providers_selinux_port/semanage.html
  29. +2 −4 docs/puppet_types/selinux_fcontext.html
  30. +2 −4 docs/puppet_types/selinux_fcontext_equivalence.html
  31. +2 −4 docs/puppet_types/selinux_permissive.html
  32. +2 −4 docs/puppet_types/selinux_port.html
  33. +2 −4 docs/top-level-namespace.html
  34. +5 −4 metadata.json
  35. +0 −1 spec/acceptance/nodesets/docker/debian-7.yml
  36. +0 −1 spec/acceptance/nodesets/docker/debian-8.yml
  37. +20 −0 spec/acceptance/nodesets/docker/debian-9.yml
  38. +6 −3 spec/acceptance/nodesets/{fedora-24-x64.yml → fedora-26-x64.yml}
  39. +18 −0 spec/acceptance/nodesets/fedora-27-x64.yml
  40. +1 −2 spec/spec_helper.rb
29 changes: 17 additions & 12 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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.
will likely make it into a release a little more quickly.

## Contributing

Expand Down Expand Up @@ -65,6 +65,10 @@ add tests if you're adding new functionality. If you've not used
[rspec-puppet](http://rspec-puppet.com/) before then feel free to ask
about how best to test your new feature.

To run the linter, the syntax checker and the unit tests:

bundle exec rake test

To run your all the unit tests

bundle exec rake spec SPEC_OPTS='--format documentation'
Expand All @@ -73,10 +77,6 @@ To run a specific spec test set the `SPEC` variable:

bundle exec rake spec SPEC=spec/foo_spec.rb

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 @@ -89,15 +89,20 @@ 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.6 with.
This will run the tests on the module's default nodeset. You can override the
nodeset used, e.g.,

BEAKER_set=centos-7-x64 bundle exec rake acceptance

There are default rake tasks for the various acceptance test modules, e.g.,

BEAKER_set=centos-66-x64 bundle exec rake acceptances
bundle exec rake beaker:centos-7-x64
bundle exec rake beaker:ssh:centos-7-x64

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
at least need `BEAKER_PROVISION` set to yes (the default). The Vagrantfile
for the created virtual machines will be in `.vagrant/beaker_vagrant_fies`.
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 at
least need `BEAKER_provision` set to yes (the default). The Vagrantfile for the
created virtual machines will be in `.vagrant/beaker_vagrant_files`.

The easiest way to debug in a docker container is to open a shell:

Expand Down
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
modulesync_config_version: '1.1.0'
modulesync_config_version: '1.5.0'
13 changes: 13 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ AllCops:
- Gemfile
- Rakefile
- Guardfile
- Vagrantfile
Lint/ConditionPosition:
Enabled: True

Expand Down Expand Up @@ -45,6 +46,9 @@ Style/HashSyntax:
Style/RedundantReturn:
Enabled: True

Style/EndOfLine:
Enabled: False

Lint/AmbiguousOperator:
Enabled: True

Expand Down Expand Up @@ -530,3 +534,12 @@ Layout/IndentHeredoc:
# disable Yaml safe_load. This is needed to support ruby2.0.0 development envs
Security/YAMLLoad:
Enabled: false

# This affects hiera interpolation, as well as some configs that we push.
Style/FormatStringToken:
Enabled: false

# This is useful, but sometimes a little too picky about where unit tests files
# are located.
RSpec/FilePath:
Enabled: false
23 changes: 14 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,28 @@ matrix:
fast_finish: true
include:
- rvm: 2.1.9
bundler_args: --without system_tests development
env: PUPPET_VERSION="~> 4.0" CHECK=test
- rvm: 2.4.1
bundler_args: --without system_tests development
env: PUPPET_VERSION="~> 5.0" CHECK=test
- rvm: 2.4.1
bundler_args: --without system_tests development
bundler_args: --without system_tests development release
env: PUPPET_VERSION="~> 4.0" CHECK=test PARALLEL_TEST_PROCESSORS=16
- rvm: 2.4.2
bundler_args: --without system_tests development release
env: PUPPET_VERSION="~> 5.0" CHECK=test_with_coveralls
- rvm: 2.4.2
bundler_args: --without system_tests development release
env: PUPPET_VERSION="~> 5.0" CHECK=rubocop
- rvm: 2.4.1
bundler_args: --without system_tests development
- rvm: 2.4.2
bundler_args: --without system_tests development release
env: PUPPET_VERSION="~> 5.0" CHECK=build DEPLOY_TO_FORGE=yes
branches:
only:
- master
- /^v\d/
notifications:
email: false
irc:
on_success: always
on_failure: always
channels:
- "chat.freenode.org#voxpupuli-notifications"
deploy:
provider: puppetforge
user: puppet
Expand Down
Loading