sous-chefs / mysql

Development repository for the mysql cookbook
https://supermarket.chef.io/cookbooks/mysql
Apache License 2.0
338 stars 690 forks source link

selinux requirements refinement #523

Closed javornikolov closed 4 years ago

javornikolov commented 7 years ago

Cookbook version

8.3.1

Chef-client version

13

Platform Details

CentOS 7 MySQL 5.7 (include_recipe 'yum-mysql-community::mysql57')

Scenario:

mysql_service start would fail

Steps to Reproduce:

Given a CentOS 7 box with selinux enforced And recipe[selinux::disabled] is included in the Chef run When after that the following is executed during the same Chef run

mysql_service 'default' do
  version '5.7'
  bind_address 'localhost'
  initial_root_password '***'
  action [:create, :start]
end

Then it fails to start because selinux is still not disabled (as per selinux cookbook - that needs reboot).

Workaround:

selinux_state 'SELinux Permissive Temporary' do
  temporary true
  action :permissive
end

selinux_state 'SELinux Permissive Permanent after reboot' do
  temporary false
  action :permissive
end

Request:

It's good to either refine the requirements note or change selinux cookbook itself so that the currently listed requirements are suffient.

MitchellJThomas commented 6 years ago

I'm interested in this workaround/fix. When should I expect it to be released?

github-actions[bot] commented 4 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] commented 4 years ago

Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.