Version of the cookbook where you are encountering the issue: 6.0.6
:woman_cook: Chef-Infra Version
Version of chef-client in your environment: 16.x.x, 17.x.x
(Note: Centos6 is dead but since the older chef versions had support for it, Chef's CI pipeline would continue having it for chef16 and 17.)
:tophat: Platform details
Operating system distribution and release version:
For run with chef-16
:speaking_head: Foreword
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
:ghost: Brief Description
Recently this change https://github.com/sous-chefs/selinux/pull/86/files#diff-5565db30a2344a25231464764cd22869a286a582f77502ba806360b2ae69b14cR11 was made to add the
policycoreutils-python
packages. Due to condition, on a Centos6 system, the cookbook tries to install the packagepolicycoreutils-python-utils
which is not available for it and results in failures:e.g build log https://github.com/chef/chef/actions/runs/3243294533/jobs/5317799803
:pancakes: Cookbook version
Version of the cookbook where you are encountering the issue: 6.0.6
:woman_cook: Chef-Infra Version
Version of chef-client in your environment: 16.x.x, 17.x.x (Note: Centos6 is dead but since the older chef versions had support for it, Chef's CI pipeline would continue having it for chef16 and 17.)
:tophat: Platform details
Operating system distribution and release version: For run with chef-16
Steps To Reproduce
Steps to reproduce the behavior:
depends "selinux"
include_recipe "selinux::permissive"
:police_car: Expected behavior
SELinux mode getting set to permissive without failures for packages.
:heavy_plus_sign: Additional context
Add any other context about the problem here. e.g. related issues or existing pull requests.