Skip to content

Commit

Permalink
Squashed 'modules/selinux/' changes from efc97b6f6..3593fd7d5
Browse files Browse the repository at this point in the history
3593fd7d5 [blacksmith] Bump version to 0.8.1-rc0
6684f1c1f Merge pull request Icinga#168 from bastelfreak/rel080
e7915e295 release 0.8.0
c0b6d24f5 Merge pull request Icinga#163 from voxpupuli/modulesync
83e323cfd modulesync 0.16.7
ee985ecbe [blacksmith] Bump version to 0.7.2-rc0
4693841eb Merge pull request Icinga#160 from vinzent/release_0_7_1
a7f1de864 Release 0.7.1
d134e73b3 Merge pull request Icinga#159 from vinzent/fix_selinux_fact_usage
c607c0966 Fix usage of non-existent $::selinux_enabled fact
7e0514f4d Enable spec tests to delete selinux facts
22580ff62 Merge pull request Icinga#158 from vinzent/module_syncversion_param_undef_default
53c894672 Update selinux::module inline docs to puppet-strings format
140389ffd Default to undef for syncversion parameter in selinux::module
e97c6f5d7 Merge pull request Icinga#156 from juniorsysadmin/remove-ruby
25c63c6bf Remove mentions of Ruby requirements in README
4bebdc364 Merge pull request Icinga#155 from bastelfreak/rel070
3a38f9bfb release 0.7.0
395eb1179 Merge pull request Icinga#140 from traylenator/prefix
bdffc0bc8 Merge pull request Icinga#154 from vinzent/remove_fact_756_workaround
b164b7f9c Remove custom fact selinux_custom_policy
e662744ef Merge pull request Icinga#134 from kausar007/master
e12fb06cb [blacksmith] Bump version to 0.6.1-rc0
adbf276e6 Merge pull request Icinga#152 from voxpupuli/modulesync
0d2600d3c release 0.6.0
22dcb7287 Fix type doc
fa9aa7a3a modulesync 0.16.6
422cd7ff8 Merge pull request Icinga#151 from vinzent/issue_18_autorelabel
e37bfe9ce Create /.autorelabel when switching from disabled mode
41a28dcee Merge pull request Icinga#145 from vinzent/add_acceptance_tests
5ace474d8 Merge pull request Icinga#150 from vinzent/puppet_strings
92b9c24ae Update to puppet-strings doc in selinux class
4bc676fe4 Add acceptance tests
40826b9a5 Merge pull request Icinga#144 from juniorsysadmin/pupbump
eee7305d1 Set puppet minimum version_requirement to 3.8.7
adb2c4b44 Merge pull request Icinga#143 from voxpupuli/modulesync
5cad07a26 modulesync 0.16.4
f952195d0 Default module prefix now ''
3436c4d15 Merge pull request Icinga#138 from traylenator/sl6
2aa5004b0 Merge pull request Icinga#139 from voxpupuli/modulesync
f372ac529 modulesync 0.16.3
a05a29afd Fixes Icinga#133 Use semange -f 'all files' on RHEL6
a5f64af6b Merge pull request Icinga#137 from traylenator/pfacts
e0cfefcff Use rspec-puppet-facts in all places
c20363faf Merge pull request Icinga#136 from alexjfisher/ruby1.8
6ea273261 Update README with ruby 1.8 status
a58704be4 add argument variable for selinux::port (Icinga#132)
242a0799f Fixes Issue-130 - No rspec for permissive (Icinga#131)
4b9bf3853 Fixes Issue-104 - No Hiera support (Icinga#128)
c3d5b5480 Merge pull request Icinga#127 from voxpupuli/modulesync
c28b2bd67 modulesync 0.15.0
762c3ac60 Merge pull request Icinga#126 from logic/master
4257b6ae1 Use selinux-policy-devel on Fedora 25.
722ac9ea5 Merge pull request Icinga#124 from dhoppe/readme
fdbc177eb Add missing badges
baf362787 Fix several markdown issues
781ca754a Merge pull request Icinga#125 from alexjfisher/rubocop
cc6e4a362 rubocop: fix RSpec/NotToNot
5d66d0a1d rubocop: fix RSpec/ImplicitExpect
f229c266a Merge pull request Icinga#123 from dhoppe/modulesync
e4272908e Update based on voxpupuli/modulesync_config 0.14.1
1e5f62dcd Merge pull request Icinga#122 from voxpupuli/modulesync
fc347e5dc modulesync 0.13.0
6e2b1b0f4 [blacksmith] Bump version to 0.5.1-rc0
06949693d Merge pull request Icinga#120 from bastelfreak/rel050
ca467e5de release 0.5.0
f84bc896f puppet-lint: fix 2sp_soft_tabs
11c195fcb add amazon linux
c13d6947e Merge pull request Icinga#111 from bleiva/master
dd55bf0bc Merge pull request Icinga#117 from cybercom-finland/cleanups2
05cd61839 fcontext: handle also filetype=false
42bb23a44 use let do when multivalue or when with others
19c0bfd13 spec/defines/selinux_module_spec: use proper source arg
394d2d039 fcontext: check filemodes properly
3a53ab16c exec: use shellquote if parameters are not checked
bcc17dfcd Fixes Issue-108 - restorecon should detect path
bbfb70809 Fixes Issue-105 - fcontext detection with square brackets
e7fff8971 make exec path have always same order
24fb949f7 facter::selinux_custom_policy: do not use external programs to parse
15fde36a5 [blacksmith] Bump version to 0.4.2-rc0
bcf43f32e Merge pull request Icinga#116 from voxpupuli/modulesync
4feff8bae release 0.4.1
af29457e7 modulesync 0.12.5
ef6223be4 Merge pull request Icinga#113 from cybercom-finland/release_checks-fixes
34dff55ce run tests in relevant version space with CentOS 7
3feb4c63a additional tests to get coverage
dbc84059f rubocop spec fixes
aecf03a68 raise error with some message
d4ea1c622 use ruby 1.9 hash syntax
2ddfcff08 spec: use %r for regexps
a0f6b3a31 move pp files from tests to examples as per release_checks
927e396be update package name for newer os versions
f2e719c2c lint: fix warning about relative modules
69fd8b05b modulesync
7ce4a7d11 Fixing operatingsystem for Amazon Linux
fa54aa75e Merge pull request Icinga#103 from jfryman/remove-duplicate-test
c303c99e0 Removes duplicate package test
7e9281730 bump to 0.4.0
bd139e481 Merge branch 'master' of https://github.com/jfryman/puppet-selinux
22f437ec3 Merge pull request Icinga#100 from jfryman/toddnni-ensure_policycoreutils
12cb847d6 Merge branch 'master' of https://github.com/jfryman/puppet-selinux into toddnni-ensure_policycoreutils
44881a424 Merge branch 'toddnni-ensure_policycoreutils'
f5f235f45 Merge pull request Icinga#99 from Heidistein/master
f25286d7a Merge pull request Icinga#92 from toddnni/fix_module_installation_2
63b9b40b1 fix travis build. Sorry, paste error.
f1b2332a4 Add travis build test for recursion
55ee9645e Repair travis build
5a8e66289 Fix: change the regex a bit to accept exact paths. ie dont match '/data/mysqldump' when '/data/mysql' is wanted.
8c193592b Add recursion support for restorecon.
c40de8a49 Merge pull request Icinga#98 from crayfishx/feature/restorecon
9f070f4bb Added support for running restorecon after modifying file contexts
940eb46fa Merge pull request Icinga#89 from ncsutmf/master
aee8a3b31 Merge pull request Icinga#94 from lightoze/master
6e7fef068 Only require module source/content when ensure=present
d6e0875c9 Allow specifying selinux module content
6abdcdfcb Updated to devel package for Fedora 21+
479ad7ed7 Fix tests after module.pp change
c5c9979ce fix tests, ensure_packages sets ensure instead of installed
1ef4d9bc7 Add pp to module path
058a2be29 Fix error where module is reinstalled on every run
2697c24cc Use ensure_packages to install policycoreutils
140bbce31 Switch to devel package for makefile on RHEL7
a1b6df43a Merge pull request Icinga#55 from Gilum/master
cfeb9b5b7 Merge pull request Icinga#86 from jlambert121/linting
00a9755ab bump module to 0.3.1
58a02733b add more lint checks
2bd83b8a3 Merge pull request Icinga#81 from MiamiOH/master
499cb55f4 The parameter 'mode' is declared more than once
5b54825f9 Merge pull request Icinga#78 from mhjacks/master
3828497ac Add syncversion parameter
359cda4e9 Merge pull request Icinga#77 from Thubo/master
215ded686 Fix Issue Icinga#76
a72c9581f bumping metadata.json to 0.3.0
a8d930fd8 Merge pull request Icinga#49 from dacron/master
1e04c26ff Added Hiera lookups
3db90fc80 Update README.markdown
98908eb0c Deprecating older ruby/facter/puppet versions.
5cb5bb1f7 Merge pull request Icinga#73 from jyaworski/pivot_to_selmodule_selboolean
c7f03ead4 Pivot to internal types for selmodule and selboolean
73389be0a Merge pull request Icinga#37 from dlevene1/allow_tcp_and_udp_port
63a517006 If you have the same port allowed on both udp & tcp puppet manifest will fail as you have a duplicate name, this change adds the protocol name into port definition
abb25d3a3 Merge pull request Icinga#72 from jyaworski/conditionally_name_manage_package
bad02c5df Allow custom package name and management
0cadea17f Merge pull request Icinga#67 from thrnio/default_unmanaged
b078ac4ef Update README to reflect default behavior
20f7ec5a2 Switch default behavior to not manage selinux
491ec7562 Add tests for unmanaged type
4ae52d8f1 Add tests for unmanaged mode
9c155bf11 Rename config_mode spec test so it will get run
9b11e74ff Rename LICENSE.md to LICENSE
592aaf04a Add license
6b7dbaa19 Merge pull request Icinga#63 from mld/master
4e64573f4 Whitespace lint fixes
c097c3f52 Merge pull request Icinga#62 from ElvenSpellmaker/feature/manage-selinux-type
5a810891a Removes spec stuff.
03e2f3ba8 Remember `minimum` isn't `minimal`!
0b661223d Corrects tests, silly mistake.
993a9e41a Adds tests for the SELinux type.
d1e739c93 Implements SELinux type checking and ensuring.
b8334f2a4 bump module to 0.2.6
09e78fb49 Merge pull request Icinga#59 from auspost/fix-module-absent-notify
5794ddeeb Fix for selinux::module absent case failed notify
646bfb83a Merge pull request Icinga#54 from jkroepke/feature/lsbmajdistrelease
6b185ee14 Add support for Factor 1.6
061537da0 Fallback to lsbmajdistrelease, if puppet version is < 3.0
d17d139ff Merge pull request Icinga#53 from jewnix/patch-1
b1e143944 Add Permissive to puppet-selinux module
b3def280a bump module to 0.2.5
3e57a1219 Merge pull request Icinga#46 from belminf/master
cd14d02f1 awk escaping + confine fix
63bd8a69e fix facter issues, link to bug, fixes Icinga#27

git-subtree-dir: modules/selinux
git-subtree-split: 3593fd7d52dbe41760224c573a01c361794129f7
  • Loading branch information
Michael Friedrich committed Apr 24, 2017
1 parent 3901db6 commit ab50834
Show file tree
Hide file tree
Showing 79 changed files with 2,916 additions and 621 deletions.
100 changes: 100 additions & 0 deletions .github/CONTRIBUTING.md
@@ -0,0 +1,100 @@
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/).

1. Fork the repo.

1. Create a separate branch for your change.

1. Run the tests. We only take pull requests with passing tests, and
documentation.

1. Add a test for your change. Only refactoring and documentation
changes require no new tests. If you are adding functionality
or fixing a bug, please add a test.

1. Squash your commits down into logical components. Make sure to rebase
against the current master.

1. Push the branch to your fork and submit a pull request.

Please be prepared to repeat some of these steps as our contributors review
your code.

## Dependencies

The testing and development tools have a bunch of dependencies,
all managed by [bundler](http://bundler.io/) according to the
[Puppet support matrix](http://docs.puppetlabs.com/guides/platforms.html#ruby-versions).

By default the tests use a baseline version of Puppet.

If you have Ruby 2.x or want a specific version of Puppet,
you must set an environment variable such as:

export PUPPET_VERSION="~> 4.2.0"

Install the dependencies like so...

bundle install

## Syntax and style

The test suite will run [Puppet Lint](http://puppet-lint.com/) and
[Puppet Syntax](https://github.com/gds-operations/puppet-syntax) to
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
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 your all the unit tests

bundle exec rake spec SPEC_OPTS='--format documentation'

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
we want on a real machine. For that we're using
[beaker](https://github.com/puppetlabs/beaker).

This fires up a new virtual machine (using vagrant) and runs a series of
simple tests against it after applying the module. You can run this
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.

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
at least need `BEAKER_PROVISION` set to yes (the default). The Vagrantfile
for the created virtual machines will be in `.vagrant/beaker_vagrant_fies`.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE.md
@@ -0,0 +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

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

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

## What are you seeing

## What behaviour did you expect instead

## Output log

## Any additional information you'd like to impart
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +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/
-->
18 changes: 14 additions & 4 deletions .gitignore
@@ -1,5 +1,15 @@
*.swp
pkg/*
vendor/bundle
.bundle
pkg/
Gemfile.lock
Gemfile.local
vendor/
.vendor/
spec/fixtures/manifests/
spec/fixtures/modules/
.vagrant/
.bundle/
coverage/
log/
.idea/
*.iml
.*.sw?
.yardoc/
1 change: 1 addition & 0 deletions .msync.yml
@@ -0,0 +1 @@
modulesync_config_version: '0.16.7'
2 changes: 2 additions & 0 deletions .rspec
@@ -0,0 +1,2 @@
--format documentation
--color

0 comments on commit ab50834

Please sign in to comment.