Extend and enhance SELinux distro support
- Rename RedhatHelper to SELinuxDistroHelper - Explicitly support AmazonLinux 2 while avoiding accidental support for Enterprise Linux 2 - Use selinux_supported? as the single method to simplify checks in code rather than adding more and more boolean expressions - Add rspec test coverage for SELinuxDistroHelper - Fix boolean logic when checking Enterprise Linux versions 7 and 8 where instead of a boolean, an integer was being returned Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/7219 Changelog: fixed Signed-off-by:Robert Marshall <rmarshall@gitlab.com>
parent
ccdb6623
No related branches found
No related tags found
Showing
- config/projects/gitlab.rb 2 additions, 0 deletionsconfig/projects/gitlab.rb
- files/gitlab-cookbooks/gitlab/recipes/selinux.rb 1 addition, 1 deletionfiles/gitlab-cookbooks/gitlab/recipes/selinux.rb
- files/gitlab-cookbooks/package/libraries/helper.rb 1 addition, 1 deletionfiles/gitlab-cookbooks/package/libraries/helper.rb
- files/gitlab-cookbooks/package/libraries/helpers/redhat_helper.rb 0 additions, 48 deletions...tlab-cookbooks/package/libraries/helpers/redhat_helper.rb
- files/gitlab-cookbooks/package/libraries/helpers/selinux_distro_helper.rb 64 additions, 0 deletions...kbooks/package/libraries/helpers/selinux_distro_helper.rb
- spec/chef/cookbooks/package/libraries/helpers/selinux_distro_helper_spec.rb 114 additions, 0 deletions...s/package/libraries/helpers/selinux_distro_helper_spec.rb
Loading
Please register or sign in to comment