Closed carldjohnston closed 7 years ago
Thanks for reporting this issue. Can you provide more information for your platform that you are doing this on? Was it Oracle Linux or RHEL or did you test on both?
I've updated the install based on Oracle documentation, version 1.0.2 should resolve this for you. Thanks for reporting this issue.
Thanks for looking at this @iennae, the issue is with both RHEL 7.x and Oracle Linux 7.x; In or organisation, neither of these distro's have access to the "optional" repository by default.
Appreciate you giving more context!
Cookbook version
1.0.1
Chef-client version
12.8.1
Platform Details
RedHat / Oracle Linux 7.x (without "optional" repository)
Scenario:
Converging a node with selinux::default in the run list. Fails with error of missing 'setools' package.
Steps to Reproduce:
Converge EL6/7 node with selinux::default in the run list.
Expected Result:
Converges successfully, 'setools' package not (or optionally with node attribute) installed.
Actual Result:
Fails with error caused by the package 'setools' not being available on RHEL systems without 'optional' repository.
Appears to be caused by additional packages being added to resources/install.rb in commit 2345f232fa78e8804f5da6d04fafa0c38f228b4c - prior to version 1.0.0 converges were successful and only installed 'libselinux-utils'.