diff options
author | neha-p6 <neha.pansare@progress.com> | 2022-04-11 11:00:57 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 11:00:57 +0530 |
commit | d3dda786b2a6d61025288c002ae7b5b60c499f92 (patch) | |
tree | 2e48a0e853c05ca404be357ba2c928d491ec7b01 /lib/chef/resources.rb | |
parent | d3e922a67abec71825d6f6c6ac8fd4ef9fc53019 (diff) | |
download | chef-d3dda786b2a6d61025288c002ae7b5b60c499f92.tar.gz |
SELinux integration to infra client (#12694)
* 1. Add resources for SELlinux
2. Add common helper for SELinux under a new subdirectory
3. Wire files together with corresponding changes
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 3. Include SElinux CommonHelper under action_class for corresponding resources as it uses shell_out!
4. Add SELinux config file templates for debian and default versions
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 5.Add local mode true to correctly parse template from selinux_state resource
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 6. Remove SELinux cookbook dependency from kitchen-tests as SELinux resources are now part of core chef client, update linux.rb recipe to use corresponding SELinux resources instead of include_recipe
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 7. Add unit test cases for SELinux resources
8. Add documentation for SELinux resources
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 9. Obvious fix: code linting and spellcheck
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 10. Add code linting changes.
11. Add missing comma in cspell.json resulting in issue
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 12. Add linting and spellcheck changes
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 13. Add documentation for SELinux resources for all properties, actions with examples
14. Added permissive SELinux policy for en_to_end kitchen test
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
* 15. Fix chefstyle linting
16. Update few shell_out calls to use array format of input parameters
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
Diffstat (limited to 'lib/chef/resources.rb')
-rw-r--r-- | lib/chef/resources.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/resources.rb b/lib/chef/resources.rb index ac5ec5d8e0..0d310f8bea 100644 --- a/lib/chef/resources.rb +++ b/lib/chef/resources.rb @@ -124,6 +124,13 @@ require_relative "resource/route" require_relative "resource/ruby" require_relative "resource/ruby_block" require_relative "resource/script" +require_relative "resource/selinux_boolean" +require_relative "resource/selinux_fcontext" +require_relative "resource/selinux_install" +require_relative "resource/selinux_module" +require_relative "resource/selinux_permissive" +require_relative "resource/selinux_port" +require_relative "resource/selinux_state" require_relative "resource/service" require_relative "resource/sudo" require_relative "resource/sysctl" |