From 7960e8d1f28c9b35d88122ba12c4a2148a28b629 Mon Sep 17 00:00:00 2001 From: Seth House Date: Wed, 14 May 2014 09:32:09 -0600 Subject: [PATCH] Removed disabling SELinux prereq; no longer needed This SELinux problem was caused by the yumpkg.py module that used the yum Python interface for CentOS 6 machines. That was removed in favor of the yumpkg.py that shells out to yum which does not have this problem. This workaround can be removed. --- mysql/server.sls | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/mysql/server.sls b/mysql/server.sls index e620ba1..36122a4 100644 --- a/mysql/server.sls +++ b/mysql/server.sls @@ -68,23 +68,6 @@ my.cnf: - service: mysqld {% endif %} -# Set SELinux to permissive mode while installing mysqld otherwise the -# mysql user will not be created; restore enforcing when done. -{% if (grains['os_family'] == 'RedHat' - and salt['cmd.run']("sestatus | awk '/Current mode/ { print $3 }'") == 'enforcing') %} -selinux_permissive: - cmd.run: - - name: setenforce permissive - - prereq: - - pkg: mysqld - -selinux_enforcing: - cmd.wait: - - name: setenforce enforcing - - watch_in: - - pkg: mysqld -{% endif %} - {% if grains['os'] in 'FreeBSD' %} my.cnf: file.managed: