Showing with 1,030 additions and 527 deletions.
  1. +10 −5 .github/CONTRIBUTING.md
  2. +9 −6 .github/ISSUE_TEMPLATE.md
  3. +3 −0 .github/PULL_REQUEST_TEMPLATE.md
  4. +2 −1 .gitignore
  5. +1 −1 .msync.yml
  6. +4 −0 .rubocop.yml
  7. +0 −2 .sync.yml
  8. +10 −8 .travis.yml
  9. +13 −0 CHANGELOG.md
  10. +6 −3 Gemfile
  11. +0 −86 README.markdown
  12. +99 −0 README.md
  13. +2 −11 Rakefile
  14. +12 −0 manifests/config.pp
  15. +17 −2 manifests/fcontext.pp
  16. +48 −26 manifests/init.pp
  17. +1 −1 manifests/params.pp
  18. +3 −1 manifests/port.pp
  19. +8 −2 metadata.json
  20. +80 −0 spec/acceptance/class_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. +3 −0 spec/acceptance/nodesets/ubuntu-server-1204-x64.yml
  36. +3 −0 spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
  37. +15 −0 spec/acceptance/nodesets/ubuntu-server-1604-x64.yml
  38. +59 −36 spec/classes/selinux_config_mode_spec.rb
  39. +39 −38 spec/classes/selinux_config_type_spec.rb
  40. +8 −8 spec/classes/selinux_package_spec.rb
  41. +9 −3 spec/classes/selinux_restorecond_config_spec.rb
  42. +8 −3 spec/classes/selinux_restorecond_service_spec.rb
  43. +10 −4 spec/classes/selinux_restorecond_spec.rb
  44. +10 −13 spec/classes/selinux_spec.rb
  45. +0 −1 spec/default_facts.yml
  46. +1 −0 spec/default_module_facts.yml
  47. +33 −27 spec/defines/selinux_boolean_spec.rb
  48. +161 −138 spec/defines/selinux_fcontext_spec.rb
  49. +29 −24 spec/defines/selinux_module_spec.rb
  50. +23 −0 spec/defines/selinux_permissive_spec.rb
  51. +45 −39 spec/defines/selinux_port_spec.rb
  52. +22 −17 spec/defines/selinux_restorecond_fragment_spec.rb
  53. +17 −1 spec/spec_helper.rb
  54. +34 −0 spec/spec_helper_acceptance.rb
  55. +0 −20 spec/spec_helper_methods.rb
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/
-->
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ 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.5'
modulesync_config_version: '0.16.6'
4 changes: 4 additions & 0 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 Down
2 changes: 0 additions & 2 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
.travis.yml:
secure: "r7NI3OHbyMs/w351LkmkTFFLriDDyWKvgyZt+XYPw7jbaWmqnV4+NSJMQSkXgTS+tq2jNPLOWY1UuPuFJKkyd1m7LteOb2yZ6HJs5BL7QJjJWC2vUjkY60kl2xHn81D6SEXOXoVseGWiimlTlWJM3pKljNgZOZlOMw96vgnd6/I="
spec/spec_helper.rb:
spec_overrides: "require 'spec_helper_methods'"
18 changes: 10 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,26 @@ matrix:
env: PUPPET_VERSION="~> 3.0" STRICT_VARIABLES="yes" CHECK=test
- rvm: 2.1.9
env: PUPPET_VERSION="~> 4.0" CHECK=test
- rvm: 2.2.5
- rvm: 2.2.6
env: PUPPET_VERSION="~> 4.0" CHECK=test
- rvm: 2.3.1
- rvm: 2.3.3
env: PUPPET_VERSION="~> 4.0" CHECK=build DEPLOY_TO_FORGE=yes
- rvm: 2.3.1
- rvm: 2.3.3
env: PUPPET_VERSION="~> 4.0" CHECK=rubocop
- rvm: 2.3.1
- rvm: 2.3.3
env: PUPPET_VERSION="~> 4.0" CHECK=test
- rvm: 2.4.0-preview1
- rvm: 2.4.0-rc1
env: PUPPET_VERSION="~> 4.0" CHECK=test
allow_failures:
- rvm: 2.4.0-preview1
- rvm: 2.4.0-rc1
branches:
only:
- master
- /^v\d/
notifications:
email: false
deploy:
provider: puppetforge
deploy:
branch: ha-bug-puppet-forge
user: puppet
password:
secure: "r7NI3OHbyMs/w351LkmkTFFLriDDyWKvgyZt+XYPw7jbaWmqnV4+NSJMQSkXgTS+tq2jNPLOWY1UuPuFJKkyd1m7LteOb2yZ6HJs5BL7QJjJWC2vUjkY60kl2xHn81D6SEXOXoVseGWiimlTlWJM3pKljNgZOZlOMw96vgnd6/I="
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## 2016-12-24 Release 0.6.0

- Modulesync with latest Vox Pupuli defaults
- Add support for Fedora 25
- Update README.md with badges
- Improve spec tests
- Add acceptance tests
- Add Hiera support
- Fix CentOS 6 semanage syntax
- Implement puppet-strings
- Fix: Do relabel if necessary


## 2016-09-08 Release [v0.5.0](https://github.com/voxpupuli/puppet-selinux/tree/v0.5.0)

[Full Changelog](https://github.com/voxpupuli/puppet-selinux/compare/v0.4.1...v0.5.0)
Expand Down
9 changes: 6 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ end

group :test do
gem 'puppetlabs_spec_helper', '~> 1.2.2', :require => false
gem 'rspec-puppet', :require => false, :git => 'https://github.com/rodjek/rspec-puppet.git'
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,16 +25,18 @@ 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 'puppet-strings', '~> 0.99.0', :require => false
gem 'rubocop-rspec', '~> 1.6', :require => false if RUBY_VERSION >= '2.3.0'
gem 'json_pure', '<= 2.0.1', :require => false if RUBY_VERSION < '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
gem 'travis', :require => false
gem 'travis-lint', :require => false
gem 'guard-rake', :require => false
gem 'github_changelog_generator'
end

group :system_tests do
Expand All @@ -46,6 +48,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
86 changes: 0 additions & 86 deletions README.markdown

This file was deleted.

Loading