-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Fix for issue 128 #153
Fix for issue 128 #153
Conversation
* updating nginx to chef_nginx * removing nginx dependency * template property should not be boolen. just removing it. * fixed syntax error
recipes/server.rb
Outdated
bash 'Restore security context' do | ||
user 'root' | ||
code "/usr/sbin/restorecon -v #{node['mariadb']['mysqld']['default_datadir']}" | ||
only_if '[ -f /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled' |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Thanks, Stephen, I'll check on this. |
I remembered why I gave up on using I see 2 ways to make it work:
The first approach makes all Bash resources in runlist "infected" by Chef::Util::Selinux, the other one is considered bad practice in chef. |
Now that you mention that, it does sound familiar. I dug into our wrapper cookbook and we ended up with something like this:
and then use On a separate note we should discuss SELinux testing, but let's do that in #155. |
2bdd578
to
b64f553
Compare
I've rebased and fixed up the guard to test if SELinux is enabled. Thanks for the contribution! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
No description provided.