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

- linux.system.repo - linux.system.repo


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

{%- if system.selinux == 'disabled' %}
{%- set mode = 'permissive' %}
{%- else %}
{%- set mode = system.selinux %} {%- 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 }}: {{ mode }}:
selinux.mode
selinux.mode:
- require:
- pkg: linux_repo_prereq_pkgs


{%- endif %} {%- endif %}



Loading…
Cancel
Save