New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setsebool - No such file or directory #93

Closed
tnguyen14 opened this Issue Nov 26, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@tnguyen14
Copy link

tnguyen14 commented Nov 26, 2018

Cookbook version

2.1.0

Chef-client version

14.2

Platform Details

RHEL 7

Scenario:

I have the following resource to enable support for NGINX

selinux_policy_boolean 'httpd_can_network_connect' do
  value true
end

Expected Result:

This works every time.

Actual Result:

It works on the first chef run, but on some later chef runs, I get this error instead:

selinux_policy_boolean[httpd_can_network_connect] (cookbook::nginx line 26) had an error: Errno::ENOENT: execute[selinux-setbool-httpd_can_network_connect-on] (/var/chef/cache/cookbooks/selinux_policy/providers/boolean.rb line 21) had an error: Errno::ENOENT: No such file or directory - setsebool
@tnguyen14

This comment has been minimized.

Copy link

tnguyen14 commented Nov 26, 2018

I think this might be related to #85

@sspans sspans referenced this issue Nov 28, 2018

Merged

use chef/mixin/which to locate selinux binaries #97

3 of 3 tasks complete
@sspans

This comment has been minimized.

Copy link
Contributor

sspans commented Nov 29, 2018

I guess this can be closed.

@damacus damacus closed this Nov 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment