mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 01:30:25 +00:00
Merge pull request #13 from saltstack-formulas/remove-selinux-prereq
Removed disabling SELinux prereq; no longer needed
This commit is contained in:
commit
a1d6ac2825
1 changed files with 0 additions and 17 deletions
|
@ -63,23 +63,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:
|
||||
|
|
Loading…
Add table
Reference in a new issue