Browse Source

Merge remote-tracking branch 'origin/master'

pull/128/head
Filip Pytloun 7 years ago
parent
commit
2e32546139
1 changed files with 3 additions and 13 deletions
  1. +3
    -13
      linux/system/selinux.sls

+ 3
- 13
linux/system/selinux.sls View File

@@ -5,22 +5,12 @@ include:
- linux.system.repo

{%- if grains.os_family == 'RedHat' %}

{%- if system.selinux == 'disabled' %}
{%- set mode = 'permissive' %}
{%- else %}
{%- set mode = system.selinux %}
{%- endif %}

selinux_config:
cmd.run:
- name: "sed -i 's/SELINUX=[a-z][a-z]*$/SELINUX={{ system.selinux }}/' /etc/selinux/config"
- unless: grep 'SELINUX={{ system.selinux }}' /etc/selinux/config
- require:
- pkg: linux_repo_prereq_pkgs

{{ mode }}:
selinux.mode
selinux.mode:
- require:
- pkg: linux_repo_prereq_pkgs

{%- endif %}


Loading…
Cancel
Save